Facebook Graph API 返回 false [英] Facebook Graph API returns false
本文介绍了Facebook Graph API 返回 false的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在处理好友请求.当用户发送好友请求时,我会收到一个 request_id 作为响应.但是,当我按如下方式使用此 request_id ( XXXX) 时:
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
它返回:
false
access_token 似乎是正确的(此处使用的仅作为示例),我是否遗漏了什么?false 是什么意思?我如何获取 JSON 对象作为返回数据?
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屋!
查看全文