Вопрос

I am working in a website.And my website has it's internal registered users(also having user's facebook email-id and uid in my website database). In my website homepage I have facebook like button. Lets M1,M2,M3 are three registered member in my site. When M1 likes a content of my website it is shown on M1's wall. Then M2 likes/shares the post from M1's wall, and it is shown on M2's wall, Again M3 likes/shares the post from M2's wall, and it is shown on M3's wall. I want the events(along with uid of the liker/sharer) when M2/M3 likes/shares the post,so that I can do some activity based on the event for the corresponding user.

If it is possible to get the details on real time will be best, Otherwise any batch processing is also acceptable.

Это было полезно?

Решение

If you have the post_id, you can access it's data (including likes and comments) by sending a GET request to https://graph.facebook.com/POST_ID.

This will return JSON data related to that post that you can read and use. See here for more details: https://developers.facebook.com/docs/reference/api/post/

This is not yet available for real-time subscribing, so batch requests are your only option at this time.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top