Hello im really new to this and ive searched the web for answers about it.
I wanna create a newsfeed from a facebook "fanpage" and add it to a website to get a newsfeed of statuses showing on the html site. How do i create this?=
You can use the Graph API to pull a list of posts from a page wall
Documentation: https://developers.facebook.com/docs/reference/api/page/#connections
Example: https://developers.facebook.com/tools/explorer/?method=GET&path=19292868552%2Ffeed
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/
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 try to publish link on Facebook fan page using graph API but it displayed as attachment not as normal feed which display thumbnail.
Where as when I try to publish same link on users wall it display properly showing image thumbnail.
Can any one tell me why Facebook graph API work differently.
Feed publish on FB fan page :
Feed on user wall :
Thanks to all, I am finally able to solve this issue, the issue was I am using {page_id}/feed method to publish link for video and image, which displayed as attachment on Facebook fan page.
Solution : {page_id}/links with parameters [link, message, picture]
Pls provide params you include in request to facebook. Maybe providing params as shown in answer to following question helps, i.e. picture?
Posting an embedded video link using the Facebook Graph API
I'm trying to implement a Facebook page timeline in a website with the open graph API from Facebook:
https://graph.facebook.com/{PAGEID}/posts?access_token={accessToken}&limit=5
This gives my a nice array of timeline objects. Per post I would like a like button for that specific single post. Does anyone know how to do this with PHP? I can't find any documentation about this 'like functionality' on the facebook developers site.
You can select the post id of the post you need and after that make a post request to 'https://graph.facebook.com/OBJECT_ID/likes'
For further reading you can visit:
https://developers.facebook.com/docs/reference/api/publishing/
And for testing you can visit:
https://developers.facebook.com/tools/explorer?method=POST
Posts made to page wall using graph api displayed in user newsfeed without "via ".
You can see axample here http://www.insidefacebook.com/2012/11/12/new-link-shows-users-more-page-posts-and-friend-activity-in-news-feed/.
Is it possible to see what application shared this post to page?
Actually you can use Graph API to find out what application created the post. Although Michael is correct in pointing that via- tag is removed by Facebook on post's display.
The "via"-attribution for posts done by apps on pages was recently dropped by Facebook.
I'm pretty sure there's no way to tell from the outside, if a post was made through an app, and which app in particular.
Compare this screenshot of what the Graph API exposes about a post (its a post we've published on http://fb.com/diesocialisten via http://www.swat.io)
Post: https://www.facebook.com/129842310398883/posts/350825491682109
There's no hint of the used app here:
Anvesh is right: you actually can get the "application"-field, but you have to query the feed itself (/diesocialisten/feed), not the particular post. Cool, didn't know that!