Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get Facebook page notification via Graph API

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.

like image 633
Jeyara Avatar asked Dec 27 '22 06:12

Jeyara


1 Answers

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/

like image 50
Nathan Totten Avatar answered Jan 16 '23 05:01

Nathan Totten