Error while fetching Facebook friends in iOS

后端 未结 1 970
生来不讨喜
生来不讨喜 2021-01-07 02:01

I\'m trying to fetch facebook friendlist of a logged in user and it works fine in my account, but when I migrated the app details to a new account and changed the app ID and

1条回答
  •  隐瞒了意图╮
    2021-01-07 02:23

    According to https://developers.facebook.com/docs/apps/changelog Friend list now only returns friends who also use your app: The list of friends returned via the /me/friends endpoint is now limited to the list of friends that have authorized your app.

    So I changed my above code to this and it gave me list of friends that use the app and not the whole FB friendlist

    FBRequest *friendsRequest = [FBRequest requestForGraphPath:@"/me/friends"];
    

    0 讨论(0)
提交回复
热议问题