Is there any way to create carousel post in Facebook Graph API? If I'm trying to post to feed with child_attachments the result is an error((#10) Application does not have permission for this action), if I'm trying in two steps(creating a post and updating with child_attachments) the result is success: true, but nothing is happening, and same goes for creating a post on FB, then getting the data on graph api and posting back with different data.
Related
I'm looking for a way to create a multi-photo story on a Page feed. Before Aug 3, it was possible to create an album using POST /page-id/albums endpoint. I would then upload multiple photos to the album using POST /album-id/photos and Facebook would automatically show a story on the page feed about the new album with pictures in it. This functionality has now been deprecated: https://developers.facebook.com/docs/graph-api/changelog/version7.0#pages.
Given the deprecation above, is it still possible to create a multi-photo story on a page feed? If yes, please provide the specific endpoints and request structure to use.
It is impossible to create a new album via Graph API as of v7.0+. What can be done instead, is to upload multiple pictures to the page in unpublished state using POST /page-id/photos and then creating a feed story with the unpublished pictures as attachments, using POST /page-id/feed. This workflow, with examples, is explained in detail here: https://developers.facebook.com/docs/graph-api/photo-uploads/
Hi i am trying to get the Facebook video views (Videos)uploaded by user to his timeline using Facebook graph api.
I am in the Facebook graph api explorer in my access token i also have permissions for user_videos and read_insights
My request for getting the total video views count is this.
879235328905006/video_insights/total_video_views/lifetime
but when i make the request it gives me empty response every time in the explorer
{
"data": [
]
}
879235328905006 is my video id which i have uploaded to my timeline and i am also the owner of the video.
I have tried this request with my different video ids but still it gives me empty response.
is their a way we can get the views count of the videos uploaded by the user to his timeline using facebook graph api...?
I am trying to automate Post and Shares in Facebook Page's feed using the Graph API.
For simple posts in feed like text and link I was able to do it with no struggle.
(Based in this: https://developers.facebook.com/docs/graph-api/reference/v2.10/user/feed#publish)
Then I got into making a Share of photo or video. Again not a problem. But I have noticed in Facebook Page itself it is possible to add a Send Message button. Where it even has a label with "Add this button to your post so people can reply directly in Messenger."
Facebook create post in Page
I was looking in the actions sections and other places and I found no way to add it via Graph request.
Currently, I am generating the Post via Graph like this:
POST graph.facebook.com/v2.10/MY_PAGE_ID/photos?access_token=PAGE_TOKEN&caption=MY_TEXT&url=IMAGE_URL
It it possible to add the Send Message button via Graph? Or this is only restricted to Facebook UI?
Thanks for the help!
Use this endpoint /page-id/feed https://developers.facebook.com/docs/graph-api/reference/v3.0/post
call_to_action parameter should be
{"type":"MESSAGE_PAGE","value":{}}
I am trying to get all events from a Facebook page, so no posts, just the events. How can I achieve that with the opengraph api?
I tried the paramenters event and user_events but this returns nothing.
How can I get a json object containing all events and their data from a facebook page?
The endpoint for events:
/page-id/events
The endpoint to get events and the feed in one call:
/page-id?fields=events,feed
...or with specific sub-fields:
/page-id?fields=events{name,description},feed
I've studied Facebook API for several hours, and googled lots of pages. But I can not find the way get posts list just like my timeline on Facebook app.
I would like to make a Web app that show my timeline posts just like Flipboard. I found an API to get my "story" and "my friends list". But I can not even imagine how to retrieve my friend post that shown on my timeline.
Is it impossible to replicate my timeline on my web app? Only Flipboard can do that? Do you have any hint?
To access the current User's News Feed use the "User/Home" request as described in the API Documentation.
In order to gain access to the User's News Feed you will be required to gain the "read_stream" permission. For information on how to request the appropriate permission, read the Login, authorization and permissions section of the Getting Started guide.
The request to me/home will return an array of News Feed items, which are comprised of statuses, pictures, likes, etc. You can see an example of the result by using the Graph API Explorer.
Compare the results to your Timeline and they should be nearly identical (currently I believe Ads/Promoted Posts are excluded from the API)"
Play around with the Graph API Explorer:
https://developers.facebook.com/tools/explorer/?method=GET&path=me%2Fhome
I had to change the permissions within the App and specifically give myself 'read_stream' access, but once that was complete I was able to run a '/me/home' Graph API GET Request and return a representation of my timeline. Good luck!
You can get the timeline this way:
$fb = new Facebook('{config}');
$fb->setDefaultAccessToken('{getAccesstoken}');
$request = $fb->get('/me?fields=feed.limit(10000){link}');
//
$graphObject = $request->getGraphNode();
return $graphObject;