Real time update for fans page [closed]

南笙酒味 提交于 2019-12-03 21:55:19
Rafa

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