响应code 200从Facebook [英] Response code 200 from facebook

查看:190
本文介绍了响应code 200从Facebook的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发,它使用Facebook的SDK新的Andr​​oid应用程序。我想获取用户的好友列表,我做的那样:

I'm developing new android app which uses facebook sdk. I want to fetch users friends list, I'm doing it like that:

Request request = Request.newMyFriendsRequest(
                        Session.getActiveSession(),
                        new Request.GraphUserListCallback() {
                            public void onCompleted(List<GraphUser> paramAnonymousList,
                                    Response paramAnonymousResponse) {
                                Toast.makeText(getApplicationContext(),
                                        paramAnonymousList.toString(),
                                        Toast.LENGTH_SHORT).show();
                                Log.e(TAG, paramAnonymousList.toString()
                                        + paramAnonymousResponse.toString());
                            }
                        });
                request.executeAsync();

然而,当我运行的应用程序我得到这样的事情:

However when I run app I'm getting something like that:

GraphObjectList{itemType=GraphUser, state=[]}{Response: responseCode: 200, graphObject: GraphObject{graphObjectClass=GraphObject, state={"data":[]}}, error: null, isFromCache:false}

我试图运行应用程序里面这code这是不是在发展方式转变和它的正常工作 - 我能够获取用户的数据。有什么可以响应code 200的原因据认为:的 https://developers.facebook.com/docs/graph-api/using-graph-api/v2.0 响应code 200属于Facebook的权限错误。但获取用户的好友列表我没有提供任何具体的权限,因此有什么可这种反应的原因是什么?

I tried to run this code inside app which is not in development mode and it's working fine - i'm able to fetch user's data. What can be the cause of response code 200. According to that: https://developers.facebook.com/docs/graph-api/using-graph-api/v2.0 response code 200 belong to facebook permission errors. But to fetch user's friends list I don't have to provide any specific permissions, so what can be the cause of this response?

在此先感谢

推荐答案

HTTP 200意味着你的要求确定。

HTTP 200 means that your request is OK.

真正的问题是Facebook的API 2.0版。应用程序无法检索朋友的完整列表,为用户,只有朋友的已经使用的应用程序即可。即使你的应用程序仍处于V1.0,谁第一次登录5月1日之后,用户越来越v2.0的行为。

The real issue is Facebook API v2.0. Apps cannot retrieve the full list of friends for a user, only friends already using the application. Even if you application is still in v1.0, users who first logged in after May 1st are getting v2.0 behaviour.

参考: HTTPS://developers.facebook。 COM /文档/图形的API /参考/ 2.0 /用户/朋友

干杯!

这篇关于响应code 200从Facebook的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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