开发者

How to get "x is friends with x" in me/home using Graph API & Javascript SDk

开发者 https://www.devze.com 2023-04-01 04:03 出处:网络
is there a way to do this? Using the me/home json feed, it shows up as a person and just one image of the perso开发者_如何学运维n they have friended, even if they have friended several.

is there a way to do this?

Using the me/home json feed, it shows up as a person and just one image of the perso开发者_如何学运维n they have friended, even if they have friended several.

Is there a way to pull in all the information?


The most efficient way to achieve this is by using the Graph API Real Time Updates, there's no need to pull the home feed. You should be able to subscribe to the "friends" connection of the "user" object you need so your "callback server URL" will be hit by our servers when that user gets new friends (POST Request).

Note that you will only be able to retrieve the user's new friends public information unless they have previously authorized your App.

Please see further documentation at: https://developers.facebook.com/docs/reference/api/realtime/

Many thanks

Daniel Torvisco - Developer Support Engineer at Facebook

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号