I am using FB real time API to fetch real time data from a FB page. I have installed webhooks in my application and subscribed to feed, also made a POST request to /{page_id}/subscribed_apps end point to get real time updates. However, each time when a new data is added to my page FB realtime API is giving multiple responses.
Related
I have an app which manages hundreds of Facebook pages. Now I need to make a dashboard which will show reports based on Facebook insights for every page but when I try to get the data from Facebook I am getting a message saying that I am reaching the requests limit and I am not able to make requests to Facebook Insights any more.
For every page I get 10-15 metrics in a single request, but I have hundreds of pages.
I found that the limit is 200 App request per hour, but for insights there are different rules.
How I can make my dashboard works because even batch requests did not help?
Request that your app be upgraded to Standard Access. An overview of the access tiers and instructions for requesting an upgrade are here: https://developers.facebook.com/docs/marketing-api/access
I am referring following links to the Facebook documentation for real time subscription.
https://developers.facebook.com/docs/graph-api/webhooks
https://www.facebook.com/marketingdevelopers/videos/883648801749520/
For the page, the graph api v2.6/{page-id}/subscribed_apps is used for subscribing the page to the app.
I am looking for the graph api for subscribing user to the app for the real time changes.
I am looking for the graph api for subscribing user to the app for the real time changes.
There is no such endpoint.
For updates from users, you don’t need to create an individual subscription for every single one, like you need to do with pages.
You just do the general setup, that subscribes your app to updates for certain fields/edges of the user object. You then will get updates automatically for the users of your app, when a change on those happens (provided that the users gave your app the necessary permissions to read that kind of data.)
It seems weird that I can get a public page feed on facebook (posts, etc) by doing:
https://graph.facebook.com/cnn/feed?access_token=ACCESSTOKEN
but I can't get that info with their realtime api? Is it possible just to have any changes (posts created) get pushed to me with the realtime api by subscribing to a page, for example the CNN facebook page? It seems silly to just keep on having to hit the graph api every x minutes and check to see if there are any new posts since the last post id when the realtime api could just push them to me. Does anyone know a way to do this? What am I missing?
Thanks
In order to receive real time updates from the page, the app needs to be installed on the Page.
The real-time update settings doesn't let you specify a page_id so there is no way for Facebook to know which pages you want to receive updates from.
Seeing as you won't have permission to install apps to pages you don't have admin access to, you are limited to the method you are already using at the moment. The only way is to continue querying the API periodically and checking for changes.
I'm having a hard time getting access to most recent posts and comments for a given user using the OpenGraph API.
I have the read_stream permission, and get realtime notifications for feed field on the user object. The notification comes in, but fetching the /<user id>/feed stream doesn't include the new action.
When playing around with the Graph API Explorer, the data I see via OpenGraph and data I see by going directly to the page is different. Viewing my friend's profile, I see his latest update, yet it doesn't come back via /friend_id/feed. A comment I left a week ago shows in my /feed, but one from a few hours ago (which sent a realtime notification!) isn't showing up.
It's almost like some posts are filtered for the API. Is this how it's supposed to work?
My actual goal is to get all the comments made by my application's user.
I need to pull all the updated data (wall posts , photos in albums etc) from a facebook page to my application.
currently what I am doing is frequently polling the page wall feed and other non wall post objects(like albums ) and then save the updated fields.
I'm using Graph API .
I tried facebook real-time. But its not giving enough details.
Is there a way to receive notifications from pages via graph API once post or any object of the page get any update ?
In theory this is now available through Facebook's real-time updates, at least for wall posts and photos. In practice, I'm having trouble getting it to work.