I have read the documentation, https://developers.facebook.com/docs/instagram-api/webhooks but I am confused as to how the mentions API with the webhooks works and was hoping someone could throw some light my way.
I have successfully setup the hook, and my facebook app is configured to send data here.
I gather I Have to tell the the app that the facebook page linked with an instagram account wishes to subscribe by calling this:
POST graph.facebook.com/{facebook page id}/subscribed_apps which should then hit my hook everytime any linked page gets a mention in a media item or a comment?
This is the bit I am confused on and could really use some help!
Also, can I have multiple pages subscribe to the hook?
Thanks in advance.
Can you figure this out or no
i looked everywhere with no result
Related
I follow a facebook page which has some interesting posts and they post regularly. I want to write a python script that gives me a notification whenever the page posts something. Is there a way I can accomplish this in Python?
I have searched a bit, seems like graph API is the way to go. However, all the tutorials I have seen online give a way to scrape some data or get post information. I do not seem to figure out a way to detect when a new post is made.
How should I accomplish this task?
Notifications for changes or new posts can only be made with Webhooks - which are only available if you manage the Page. Scraping is not allowed on Facebook, so there is no way to get notifications for Pages you do not manage.
You could only check with the API on a regular basis, but you would need Public Page Content Access for that, and you may have a problem with API limits if there are many Page Posts or Pages you want to check.
I'm using Facebook Webhooks with a an app subscription to a page.
I've it linked to functions in Firebase, and so far everything is running really well. However, the one snag is that its recording every comment, like and update! With a really busy facebook page thats not ideal! All I want is the latest posts sent by admins and if those posts are updated or deleted to trigger also.
Any advice?
Here is my request:
Any help would be greatly appreciated.
Many Thanks
Got a issue with Facebook Graph API. I want to read page notifications via Graph API. But Facebook documentation only states about user's notification.
Following only returns a user's notification (the user who provided the access token for this.)
http://graph.facebook.com/me/notifications
I did following techniques. But no luck.
01. But i tried with different urls with access token provided by the page. (with my stupid guess work by replacing page-id for me)
http://graph.facebook.com/page-id/notifications
02. Checked with Insights API. But Insights doesn't provide a straight forward solutions. This is more like stats. But all i just need a list of latest user/fan/post actions in the page.
https://graph.facebook.com/page-id/insights/field
Some background about my App (hope no issues with this as other API's working),
Platform .Net 4.0
Library I am using is C# Facebook SDK
Facebook documentation doesn't help much. I have spent a few day on this to find a solution for this. Just wondering if any of you guys came across this issue and solved. I hope i didn't put a duplicate question here, as i did search for few days on Stackoverflow too.
Thanks.
There isn't a page notification API. I don't believe there is any way to directly query this data.
You can get notifications of changes to a Facebook page using the Real-Time API. https://developers.facebook.com/docs/reference/api/realtime/
Facebook now allows you to read Page unread notifications by querying the edge: {page-id}/notifications.
See https://developers.facebook.com/docs/graph-api/reference/v2.7/page/notifications
From the FB Page docs for the notifications edge...
Notifications for this Page. Deprecated April 30, 2019.
Looks like the only way to track Page notifications at the moment is via the realtime Webhooks for a page, which isn't the same as reading the notifications from FB but it appears to be where we're at...until FB changes their mind again. ;)
https://developers.facebook.com/docs/pages/realtime/
I'm trying to set up a subscription on my app to one of my pages' feeds using the Facebook real-time api. It looks pretty straight forward but for some reason I can't actually get myself subscribed. I am trying to subscribe using this:
https://graph.facebook.com/<target_page_id>/subscriptions?access_token=<app_token>
&object=page&fields=feed&callback_url=<my_callback>&verify_token=123
And am verifying success/failure here:
https://graph.facebook.com/<target_page_id>/subscriptions?access_token=<app_token>
Can anyone spot what I am doing wrong?
Thanks
1stly, url to subscribe is
https://graph.facebook.com/APP_ID/subscriptions?access_token=app_token
&object=page&fields=feed&callback_url=my_callback&verify_token=123
you should use app_id instead of page_id
also, sadly there is documentation or api bug
http://developers.facebook.com/bugs/134146190023217
I am using the new facebook comments module, and I am intersted in subscribing a user to a conversation via the API. I am referring to http://developers.facebook.com/docs/reference/api/Comment/ but this doesnt seem to have an API call for a user to subscribe to a conversation. Any help is much appreciated.
Thanks in advance.
The comment plugin has subscribe options for each item in the thread for the users. That would be the easiest for the user. Their currently isn't a documented API method for this. You could build something yourself manually, and while possible, it will have the problem that you won't be able to notify them very easily like Facebook allows with the red notification api (you would have to resort to emailing them or something similar). You would also need them to authenticate your application and prompt for various extended permissions.