Reputation: 866
So I want to receive a real time notification update whenever there is a new post on a particular page. I've referred to facebook's real-time update api guide for this (https://developers.facebook.com/docs/graph-api/real-time-updates/v2.3)
I've subscribed to page feed update for my app:
My app has "manage_pages" permission:
<fb:login-button scope="manage_pages" onlogin="checkLoginState();">
After the admin of the page logs in with my app I should be receiving pafe feed updates right? But it does not work.
Some people mentioned that I have to make a post request to this url (https://graph.facebook.com/PAGEID/tabs?app_id=APPID&method=POST&access_token=PAGE_ACCESS_TOKEN) so that I get update from that particular page.
I tried this too which gave a response true but I'm still not receiving any updates when the page makes new posts.
If anyone has achieved this, please post a detailed How-To. I'd really appreciate it. Facebook's documentation are not good.
Thanks
Upvotes: 0
Views: 270
Reputation: 73984
Use the new subscribed_apps endpoint - no need to add the App to a Page for that one: https://developers.facebook.com/docs/graph-api/reference/v2.3/page/subscribed_apps
In order to make Realtime Updates work, you need to use subscribed_apps and the subscriptions endpoint.
Upvotes: 4