【问题标题】:Get friendsrequests with the Facebook Graph API 2.3使用 Facebook Graph API 2.3 获取好友请求
【发布时间】:2015-11-25 00:00:17
【问题描述】:

我已将我的 Android Facebook SDK 更新到 2.3,我不能再使用 FQL 请求了。

如何通过 Facebook Graph API 请求获取我的“好友请求”?

我有什么解决方案?

感谢您的帮助

【问题讨论】:

    标签: android facebook-graph-api


    【解决方案1】:

    更新答案

    这是**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
      }
    }
    

    【讨论】:

    • 是的,就是这样!有什么解决办法吗?
    • 不,不幸的是,至少从图形 API 的外观来看
    • 有没有办法调用“未版本化的 api”(即 v2.0 之前)或使用新 SDK 的 FQL ?有黑客吗? HTTP 请求?感谢您的帮助!
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-04-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多