I'm developing an application that directs messages from a Facebook page to a proprietary chat queue, however, I only want to get new messages (since the last time I retrieved messages). I cannot find anywhere on the Internet that explains how to filter a Graph API query, and I am not able to figure out how to query for page messages using FQL.
Related
I am trying to build an application where admin users would trough a form insert "events" containing title, description, starttime/endtime and some other fields. At the moment theese users are primarily using facebook to reach out to their users, they would like to be able to move to my app aswell as stay on facebook without too much hassle. I solved the issue of getting the events of facebook by having them all sign up for the graph api with their community/company pages and giving me the access token to fetch data about their events trough a get request to.
https://graph.facebook.com/v15.0/me/events?access_token={their token}
Now my next task at hand was simple i tought simply make a post request to the same api endpoint, but i quickly realized i was not able to do this and well i do not know how to proceed to be fair.
Tried to make a post to the same endpoint but got errors and after searching the documentation found that this was not supported??
I want to build an app for publicising events. Ideally I would like to create the event via my app and somehow add this as an event to a business facebook page. Every avenue I have looked at suggests that what I want to do is just not possible.
Am I correct in this conclusion?
As a workaround, can you use the facebook API to create timed posts such that they would appear on a businesses time line with date and time on?
Problems when trying to get Instagram stories through the Graph API
Getting Insights Data
To get insights data for an individual media object, send a GET request to the /media/insights edge and include the metric parameter with one or more of the metric values you want returned. Please note the following limitations:
Insights data is not available for media objects within album carousels (children).
Stories insights are only available for 24 hours, even if the stories are archived or highlighted. If you want to get the latest insights for a story before it expires, set up a Webhook for the Instagram topic and subscribe to the story_insights field.
For the insights data Things i tried
https://developers.facebook.com/docs/instagram-api/webhooks
Subscribed the App with the POST call from Graph Explorer api
31231XXXXX/subscribed_apps
How do I Subscribe to the story_insights field of the media object??
Story Metrics
exits
impressions
reach
replies
taps_forward
taps_back
I am currently developing an Android app that outputs the posts of a Facebook page.
Of course I want to notify the app users about new posts. Then I connected my app to Firebase Notification. When I enter and send a message there, a push message is displayed on the mobile phone. Of course I don't want to create the push message manually in Firebase every time there is a new post. So I thought I could create a function in Firebase cloud functions that gets the posts from Facebook Graph API, writes to the database and compares (Primary Key Facebook id) if there are new posts. I have searched Google for several hours, if there is a comparable topic already, but I havn't found anything. I have also worked through the documentation of Firebase cloud functions, but havn't found a starting point. Does anyone have an idea how to do that?
I am using the facebook graph api and c# sdk to make a desktop facebook application to notify users of new posts and messages in facebook. I can get the news feed (/me/home, in graph api talk), as well as messages, events, pokes, etc, but I have not been able to retrieve notifications such as when one of my friends "friends" someone else, or when one of my friends changes their profile picture. What does facebook call those notifications anyway? So, are those things available with the graph api? What about REST?
You can do such things with Facebook Real-time Updates. You can subscribe to events on objects (user, page or permissions) and Facebook will monitor changes on these object and call a callback url when changes happen.
You can watch changes of fields (name, email, ...) but also connections (friends, likes, inbox, ...).
Let's say you subscribe to the friends connection real-time update for a user. Each time this user will have a new friend, a URL of yours will be called notifying you about the event.
Hope that helps.