【发布时间】:2015-11-25 00:00:17
【问题描述】:
我已将我的 Android Facebook SDK 更新到 2.3,我不能再使用 FQL 请求了。
如何通过 Facebook Graph API 请求获取我的“好友请求”?
我有什么解决方案?
感谢您的帮助
【问题讨论】:
标签: android facebook-graph-api
我已将我的 Android Facebook SDK 更新到 2.3,我不能再使用 FQL 请求了。
如何通过 Facebook Graph API 请求获取我的“好友请求”?
我有什么解决方案?
感谢您的帮助
【问题讨论】:
标签: android facebook-graph-api
更新答案
这是**deprecated**,你不能再得到这个了
Documentation 表示 /me/friendrequests 在 Graph API 1.0 之后被删除
本文档指的是在 Graph API 之后被移除的一个特性 v1.0。
/* make the API call */
new Request(
session,
"/me/friendrequests",
null,
HttpMethod.GET,
new Request.Callback() {
public void onCompleted(Response response) {
/* handle the result */
}
} ).executeAsync();
权限
需要具有
read_requests权限的用户访问令牌才能查看 当前人收到的好友请求。
图表浏览器说
{
"error": {
"message": "(#12) friend requests is deprecated for versions v2.0 and higher",
"type": "OAuthException",
"code": 12
}
}
【讨论】: