I'm trying to read conversations of my page but after creating a new "TestApp" on facebook I am not able to read the conversations of my page.
I used the Graph API Explorer for generating the Page Access Token but when I try to get the conversations of my page, the calls (graph.facebook.com/{my_page_id}/conversations) returns only the following fields: updated_time, link, id.
How can I retrieve the messages of any conversation_id returned by API? The API version used are 2.4.
In v2.4 you need to declare the fields you want in the response.
To retrieve all fields from the conversations endpoint you need to execute the following:
https://graph.facebook.com/v2.4/{page-id}/conversations?fields=snippet,updated_time,message_count,unread_count, tags, participants,senders,can_reply,is_subscribed
References
Declarative Fields https://developers.facebook.com/docs/apps/changelog#v2_4_changes
Conversation Endpoint https://developers.facebook.com/docs/graph-api/reference/v2.4/conversation/
Related
I'm trying to extract informations about comments from Facebook page post (I'm Admin) via Http request using Facebook Graph API
graph.facebook.com/2288441345503360_2289495187064649?fields=created_time,admin_creator,message,from&access_token=xxx
I can't extract all the fileds, I got from the URL above just created_time and message
However from and admin_creator fields are disabled.
I am using facebook graph api with this edge
me/conversations?fields=participants
Graph API Explorer
this get list of conversation for my page using page access token. Now i need to search in this list by user name
Any suggestion to do that directly with API or any workaround ?
As a workaround you can call with the limit parameter set:
me/conversations?fields=participants&limit=500
It will show you 500 latest threads. Then cmd+f (ctrl+f) and type the name you are looking for.
I need to get feeds from public Facebook groups via Facebook Graph API. The documentation says, that I need "Any valid access token if the group is public" to get the news feed from public groups.
I am trying to call this request with valid access token:
https://developers.facebook.com/tools/explorer/?method=GET&path=vyvojari%2Ffeed&version=v2.8
but I only get few old posts instead of the list of actual posts.
Am I missing something?
Hi I am using facebook graph API in order to access page details:
https://graph.facebook.com/cocacola?access_token=xxx
I am successfully getting all the fields but I am unable to get emails field.
However in documentation it is showing emails as a response.
Facebook docs
You have to include the fields in the API call now:
https://graph.facebook.com/cocacola?fields=emails&access_token=xxx
I'd like to use Facebook's Graph API to retrieve the official posts from a given page. This means that the wall posts must be the one's made by the page's administrators and must exclude comments made on the posts. I'm aware that the base URL for the Graph API is http://graph.facebook.com/, but I'd like to use it without an access token. Is there anyway to do this?
No. You can't retrieve the posts using a given page without an Access Token.
You can retrieve posts by performing a GET request to the following end point (and of course using a valid Access Token):
https://graph.facebook.com/{page-id}/posts?access_token=YOUR_ACCESS_TOKEN
You can also choose particular field(s) by specifying them in the URL. For example:
https://graph.facebook.com/{page-id}/posts?access_token=YOUR_ACCESS_TOKEN
&fields=message,type,likes
You can try out this example in the Facebook Graph API explorer.