如何让所有的用户好友列表(不仅是谁使用的应用程序)?

问题描述:

在Android应用程序: 我想是谁登录了人的所有好友​​的列表,以我的应用程序,不仅是谁使用的应用程序? 我用下面的:

in android application : i want to get a list of all friends of the person who login to my app , not only those who use the app ? i use the following :

private void makeMeRequest(final Session session) {
        // Make an API call to get user data and define a 
        // new callback to handle the response.
        RequestAsyncTask request =new Request( session,
                "/me/friends",
                null,
                HttpMethod.GET,
                new Request.Callback() {

            @Override
            public void onCompleted(Response response) {
                // TODO Auto-generated method stub
                Log.e(LOG_TAG,"Members: " + response.toString());
            }
        }).executeAsync();
    } 

但响应返回空单,虽然有一些应用程序,显示人的好友列表,我能做些什么?

but the response returns empty list , although there are some apps that show person's friend list ,what can i do ??

这是不可能的+,只有应用程序2014年4月的月底前创建使用图形API的1.0版,以获得所有的朋友V2.0。它只会工作,直到2015年四月见的changelog结束有关版本的更多信息:的https:/ /developers.facebook.com/docs/apps/changelog

It is not possible to get ALL friends with v2.0+, only with Apps created before end of April 2014 by using v1.0 of the Graph API. And it will only work until end of April 2015. See changelog for more information about the versions: https://developers.facebook.com/docs/apps/changelog

还有 invitable_friends taggable_friends 虽然,但他们留给应用程序上facebook.com:

There is also invitable_friends and taggable_friends though, but they are reserved for Apps on facebook.com:

  • https://developers.facebook.com/docs/graph-api/reference/v2.1/user/invitable_friends
  • https://developers.facebook.com/docs/graph-api/reference/v2.1/user/taggable_friends

这也可能是有趣的邀请的朋友:的https://developers.facebook .COM /文档/游戏/请求/ 2.1

This may also be interesting for inviting friends: https://developers.facebook.com/docs/games/requests/v2.1