How can I embed just the posts made on a Facebook page into another website? Ive read a few things about this but all they talk about embedding more than just the posts made.
Facebook has a blog post with a section titled Graph API to pull comments that would allow you to render all the comments on page. They have sample code in PHP, but you would just need to make an http request with whatever language you are using to https://graph.facebook.com/comments/?ids={YOUR_URL}
Related
I have a wordpress blog. Is it possible to publish a link to facebook so that the published link on my facebook business page has the same like counter as the one on the blog?
Also, can the comments section be the same? (i.e. if I post the link on facebook, when someone comments, it automatically updates the comments section of the blog post and vice versa?)
This is not possible, each set of likes and comments are independent. There is no way to perform a merge of this data currently.
The Facebook Wordpress plugin provides essentially most of what you can do currently to link Wordpress to the Facebook API http://wordpress.org/extend/plugins/facebook
You can't link the like counter of your posts and pages to your Facebook page, why? They're all separate post and pages. It only makes sense.
What you can do? You can announce your post on Facebook (timeline or business page) and all can comment on it. You can add Facebook comments to your posts and pages. The commenter has the choice of that comment showing up in his Facebook timeline. People can "like" the post announcement, or the post itself if you have the Like button on it. They both act separately because for people to actually like your post, they have to visit the page. For analytics it makes sense because you want to know who is in your Facebook page and who actually clicks to visit your site. Both are not the same, and that's the point.
If you want to actually merge your site with Facebook, it will have to be in the form of a Facebook app. If that's the direction you want to take, I believe you can find some help here on the matter.
Facebook comments plugin - as far as I understand, if I have put the facebook comments plugin on a post web page, and the permalink of the post being commented on matches the base URL, then comments are stored via facebook using my post permalink.
Lets say if I post the permalink onto my facebook page wall (which I am the admin of), the open graph tags come into play, all the relavant data is pulled in, fb:admins, fb:app etc.
But is it possible to connect my facebook page (using my facebook page ID) to that permalink - so that comments posted on the page using comment plugin, connect/link with the post comments on my facebook page wall?
Thanks
This is currently not possible. We've implemented custom solution using Facebook Application and Facebook Javascript SDK on the website itself. You need to query the comments table of a specific Page post via FQL using your app access token from your server to retrieve all comments and render them on the page.
Then you need to provide user with several entry points for several states in order to enable posting for them. You need to solve four cases:
User doesn't like the page and didn't authorize your app
User doesn't like the page and authorized your app
User likes the page and didn't authorize your app
User likes the page and authorized your app
User needs to like your page and authorize your app with publish_stream permission in order to be able to comment on your page posts via your website. Of course you need to maintain reference between posts on your page and posts on your website.
The website where we did this a few years ago is BIGGBOSS click on "Komentáře" and find the same post on Facebook with the same comments.
As far as I understand your question its not possible to connect the comments from the commentbox, integrated in your non-facebook page (e.g a blog of yours), to the comments which are posted to a post on your fanpage.
The only solution would be to build an custom commentbox with the open-graph and publish the comments to the fanpagepost and additionally extract the comments out of the fanpage to display them on your blog.
But this requires accepting permission dialog before people are able to comment on your blog which would probably decrease the comments made. You would lose the benefit of the built-in commentbox.
Facebook recently added link previews to user comments.
http://www.insidefacebook.com/2011/07/21/facebook-comment-previews/
My question: is there a way to display this link preview using any of the Facebook APIs and publish_stream permission? (Graph, rest, etc)?
I've tried posting a URL in the body of a comment using the Graph API /comments endpoint, but no link preview is shown.
The feature might still be too immature to allow this, but I'm wondering if any one has tried it and got it to work in some way.
Sure. Just post a comment (for example) with youtube video and it will transfer to embed one
I have looked on 100 forums looking for a simple answer for how to stream every post on a Facebook page's wall (not using the like box for just the pages posts, but everyone's posts). I am the admin of the page and I am already using the like box for my posts so I understand that, however the developer pages of Facebook are too confusing for such a simple task. I will be inserting the stream into an HTML page which will be hosted on www.1and1.com so it can handle most, if not all code.
I know it is a lot to ask but is there evem someplace online that will offer plain step-by-step instructions for my specific needs?
If the social plugins they make available aren't sufficient, you could just pull in the feed with the Facebook graph api using the javascript sdk (easiest) or there is probably an SDK for whatever programming language you know. For example, you can see a list of posts on the coca cola page using the Facebook graph explorer:
https://developers.facebook.com/tools/explorer/?method=GET&path=cocacola%2Ffeed
The /page/feed method needs an access token, but you can use the graph explorer to get an offline_access token that you can use to pull the data in. This may eliminate javascript sdk usage though unless you want to first prompt users to authenticate your application. But otherwise you would just parse the json feed that is returned in the url indicated in the graph explorer (and add your access_token to the end of the url).
Here is a good PHP tutorial on how to display a groups feed on a web page. It would be just as easy to display the posts from a page (since you are the admin)
Just replace the group ID with the page ID. Here is a link to the feed for the Facebook Platform feed graph api results. More info on FB Pages here.
I'm trying to post a link to the wall of a facebook Page through the graph api.
http://developers.facebook.com/docs/reference/api/post/
Unfortunately the api is not very well documentet so i have some problems:
How do i get the "Share"-action to appear under a link i've posted?
How can i disable thumbnails for the link?
How can i make the caption linked
All those works when posting manually but i havn't found a way to do it through the api. I know it's possible though since i've seen other apps do it.