Facebook Graph API返回false [英] Facebook Graph API returns false

查看:126
本文介绍了Facebook Graph API返回false的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在和朋友的要求进行合作。当用户发送一个朋友请求时,我得到一个 request_id 作为响应。但是,当我使用此 request_id (XXXX)时,如下所示:

  https://图。 $ / pre $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ 

  false 

access_token 似乎是正确的(这里使用的仅仅是例子),我是否缺少某些东西? false 是什么意思?如何获取JSON对象作为返回数据?

解决方案

尝试没有最后一个斜杠:

  https://graph.facebook.com/XXXX?access_token=YYYYYYYYYY 

还可以尝试使用应用程序访问令牌。


I am working with friend requests. When the user sends a friend request, I get a request_id as a response. However, when i use this request_id ( XXXX) as follows:

https://graph.facebook.com/XXXX/?access_token=YYYYYYYYY

it returns:

false

the access_token seems to be the right one( the one used here is for example only), am i missing something ? what does false mean? how do i get the JSON object as the return data?

解决方案

Try it without the last slash:

https://graph.facebook.com/XXXX?access_token=YYYYYYYYY

Also try it with an application access token.

这篇关于Facebook Graph API返回false的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆