Real time update for fans page [closed]

橙三吉。 提交于 2020-01-01 06:55:09

问题


Is that possible to get realtime update for specific fan page?

I can get from user as long as it is allowed my apps. But how about fans?

Can send me some related documentation. If cannot, any optional I can use?


回答1:


You need to create a Page and an App. Then the Page adds that App as a tab. Then you subscribe to Realtime-Updates for pages (instead of user) to get them.

To create an App: see FB documentation

To create a page: www.facebook.com/pages/create.php

To add an App as a tab to a Page:

www.facebook.com/add.php?api_key=YOUR_APP_ID&pages=1&page=YOUR_PAGE_ID

To subscribe to an RTU for a page:

`https://graph.facebook.com/APP_ID/subscriptions?access_token=APP_ACC_TOKEN&object=page&fields=picture......`

Then FB will call your URL_CALLBACK anytime some page (that added you as a tab) has a change on one of the requested fields.

PS: I'm trying to subscribe to RTU for feed changes in the page, however according to the documentation is only possible to subscribe to picture :( If someone founds how to solve that, please let me know.

See:

developers.facebook.com/docs/reference/api/page/

developers.facebook.comdocs/reference/api/realtime/

developers.facebook.com/docs/reference/dialogs/add_to_page/


来源:https://stackoverflow.com/questions/8351924/real-time-update-for-fans-page

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!