Get facebook messeges with Graph API - facebook

I am trying to get fb messages with Graph API v2.5, but I can't find any api call, which list all of my message in messenger.
I've only found thread, but no idea how to list theese thread-id s.
Is there any solution for this on v2.5 version?

The Chat API has been removed, there is no way to get access to chat messages anymore - except for Page conversations, hereĀ“s the link to the docs: https://developers.facebook.com/docs/graph-api/reference/v2.5/page/conversations

Related

Facebook Chatbot delete messages by id

does anybody know if it is possible to delete messages by id.
For example I have an update for my content so that the user must not see any outdated messages. Didn't find anything in the graph API...
Message docs
thx
franzus
Facebook does not allow you to delete messages using the Messenger API, or the Graph API
I am not aware or, nor have found documentation for, a method that does DELETE operations (or UPDATE for that matter) on a FB Message.
The Messenger Docs provide methods for sending messsages, subscribing a page to your application's webhook, retrieving user profile information, and setting various options for your bot.

Get Facebook Following and Follower list using Facebook Graph api

I am trying to get all Facebook following users list (which I am following) and follower users list from Facebook using Graph API, I am Googling little bit but did not get anything.
Can any one help me to find the solutions.
This isn't possible with any application v2.0+ and higher. The user_subscriptions permission has been removed.

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.
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/

Using the Facebook Graph API why is it possible to read a list of videos posted to an event but not a list of photos?

As far as I can make out from reading the Facebook Graph API documentation for Events -
http://developers.facebook.com/docs/reference/api/event/
...it is possible to get a list (array) of videos that have been added to an event but NOT a list of photos. Why am I not able to get photos belonging to an event? Am I missing something here?
thanks
It's because the current implementation of the Graph API does not have the connection from Page Event to photos. The only "image" connection is the picture connection. This is probably because they haven't got around to expanding their API to handle all cases. The videoes connection is definitely out of the ordinary. It may have been placed in there early on in the development of the Graph API to hand one specific facebook partner's needs.
I can get a list of Photos by issuing a /{eventid}/photos request for an event that was created by my app, some event graph api calls are dependent on the fact that your app created the event. i.e. you can't edit an event that wasn't created with your app. I think for the photos request, you need read_stream, user_events, and maybe friend_events permission..

Check feed/post update from user's wall without calling (pulling) graph api periodically

I know how to use graph api - https://graph.facebook.com/{id}/feed|posts to get user's and page's feed.
I also know that facebook provides an subscription API. But I can not use it to check feeds of users i am interested but not our application users (ex: A super idol I am interested but who is not our application users. I want to check not only posts by him but also messages posted by his fans)
Is there a notification service to notify me (callback) the updating of user's feed, such that I don't need to pull graph api periodically to check the updating?.
Thanks.
"I want to check not only posts by him but also messages posted by his fans" and "but not our application users"
This sounds like a stalker app. http://developers.facebook.com/policy/ Facebook says you are not allowed to do that.