V2.0 facebook图形API没有通过taggable_friends从图形API获取用户id


v2.0 facebook graph api not getting user id from graph api via taggable_friends

在v1.0 API中,我可以像这样通过他们的facebook ID获得好友:

{
    "id": "757157247693594",
    "name": "Jony Woker"
},

在v2.2中,我只能使用taggable_friends来获取此信息,但是'我一定错过了文档中的某些内容,因为我获得的id是这样的(id总是不同的):

{
   "id": "AaL5Bh-Kv7YBI1tq9DdERW9f74MK5mpO-yersgJ7RkRQ9THxVgU_3MmU4sJImgMvggjbPKZ_hexxr98of9v4KAwwoziaz9lfU08JwyQxXUGviw",
   "name": "Jony Woker"
}

请告诉我如何处理这种情况。

谢谢。

你没有错过什么。/me/friends边不能替换为/me/taggable_friends

后者仅用于在帖子中标记好友,而不是显示好友列表,这是有意为之。

都在文档中:

  • https://developers.facebook.com/docs/apps/changelog v2_0
  • https://developers.facebook.com/docs/graph-api/reference/user/taggable_friends/
  • https://developers.facebook.com/docs/graph-api/reference/user-taggable-friend/