好友受邀使用不在好友列表中的应用

Friends invited to an app not in friends list

我刚刚实现了请求对话框来邀请登录人的朋友。

成功了,被邀请的朋友的FB页面出现通知,然后这个朋友点击它,接受申请。

但是,当我向邀请某人的用户请求“/me/friends”时,这个被邀请的用户没有出现。

我做错了什么?

好友和会话用户都需要授予user_friends权限

  • A user access token with user_friends permission is required to view the current person's friends.
  • This will only return any friends who have used (via Facebook Login) the app making the request.
  • If a friend of the person declines the user_friends permission, that friend will not show up in the friend list for this person.

https://developers.facebook.com/docs/graph-api/reference/v2.2/user/friends