簡體   English   中英

如何在Android中獲取Facebook好友列表

[英]how to get facebook friends list in android

當用戶進行身份驗證時,我具有user_friends權限,並且我嘗試了很多操作以從Facebook獲取朋友列表

這是我的電話

       /* make the API call */
        new Request(
                session,
                "/me/taggable_friends" /*"/me/friendlists"*/  /*"/"+id+"/friends"*/ /*"/me/friends"*/,
                null,
                HttpMethod.GET,
                new Request.Callback() {
                    public void onCompleted(Response response) {
       /* handle the result */
                        Log.d(TAG, "friends list request response:" + response.getRawResponse());

                    }
                }
        ).executeAsync();

我只使用該帳戶獲得了好友列表,如果嘗試使用另一個新帳戶創建了Facebook id,它只會給出計數但沒有數據

誰能幫幫我嗎

developers.facebook.com/docs/apps/changelog :“朋友列表現在僅返回還使用您的應用程序的朋友:通過/ me / friends端點返回的朋友列表現在僅限於已授權您的應用程序的朋友列表”

現在,您可以設置Settings.setPlatformCompatibilityEnabled(true); 它將起作用,但是很快Fb將禁用它。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM