質問

When in Facebook Graph Explorer I executed /me/friends command from docs, I get next response:

{
  "data": [
  ], 
  "summary": {
    "total_count": 68
  }
}

So, based on response, I have 68 friends (it's true), but data array is empty, and I don't see my friends in array.

What I do wrong? I think, maybe I need to config my application? but I don't know what exactly t config. Help, please

役に立ちましたか?

解決

With the new Graph API (v2.0), your application must ask for the user_friends permission in order to retrieve friends. Additionally, this new permission now only returns friends who also use the same application.

If you want to get the complete friends list for tagging / invite purposes, there are two new APIs you can use: /me/taggable_friends or /me/invitable_friends - the latter is only available to Games.

See this tutorial for more information.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top