Import Facebook posts and not just embed them - php

I am looking at importing Facebook posts and not just embedding a Facebook iframe in the page. I want to be able to get the SEO benefits of having my website news page updated all the time by my Facebook page and I believe if I just use the Facebook embed code this wont work to improve it ?. Does anyone know of a tutorial or plugin for importing posts / pics into a php based website ?.
Thanks
Iain :-)

For this you may want to look at their graph api, https://developers.facebook.com/docs/reference/api/post/
https://developers.facebook.com/blog/post/490/
you need to authenticate to facebook and retrieve the post using the api
or you can use their plugin to display the fanpage posts on your website, it's much simpler.

Social2blog ( http://www.social2blog.com/ ) import facebook posts in your blog, with a creation of Wordpress post and then with real SEO benefits. Furthermore Social2blog permit to decide if you want to point the canonical url to Facebook post. The problem with Social2blog is that it works only with facebook page. Otherwise you can create your own php script, please refer to:
How to pull in Facebook Page posts as blog posts to WordPress?

Related

Is there any Custom facebook script for personal website?

I am working on website like facebook. In which i need to post video, images and post status and there is like,comment option for all posts same like facebook. So my question is there any custom script opensource so i can implement into my website.I did some googling but doesn't get any script like that.If any one knows about this script then please let me know.
Wordpress + Buddypress plugin could be a solution.
Obviously, nothing is going to have the exact Facebook functionality off the shelf.
You can use jomsocial for create this type of site. but no one script find which bind your all requirement about create this type of website

IFTTT EntryContent not generated from RSS

While trying to automate things with IFTTT, I use a custom recipe to automatically post new articles from my WordPress site to a Facebook Page via RSS. Everything works except that no EntryContent is generated for the articles by IFTTT and posts on Facebook end up quite poor.
Is there a way to see how IFTTT posts look like before they get posted on Facebook?

view page's link in the same way fo FB

we are trying to create website based on RSS feeds collected from different sites, and
viewing RSS links in the same way of the facebook is one of requirements. so how it does?
Facebook link
Thanks in advance,
You may use this tutorial to build facebook type link extractor

Facebook page activity feed

We want to add an activity feed for a Facebook page as a widget to our Wordpress blog. This seems like it should be a simple thing to do, the Facebook documentation refuses to yield the relevant description though. It seems like 'perhaps' an app is required, although maybe not...
Any tips much appreciated.
Toby
You can grab an RSS feed from a facebook page through the graph API; which will be written in XML
Edit:
Most of the necessary steps are outlined here: http://sem-group.net/search-engine-optimization-blog/subscribe-to-your-favorite-facebook-page-via-rss/
Although you'll need to get the id of your page as part of the steps above.
To get Facebook page id: http://rieglerova.net/how-to-get-a-facebook-fan-page-id/
Wordpress seems to have its own specific plugin for importing RSS feeds:
http://wordpress.org/extend/plugins/rss-import/
(P.S. IF you find that this answers your question would there be any chance you could accept it?)

Facebook Like Count

I've successfully integrated a Facebook Like button to WordPress based website. The Facebook Like button is shown only on single posts. However, I would like to output how many times a post is being liked on the front page of my site without showing the actual like button. A simple number output is what I'm after.
I've been reading Facebook documentation as well some tutorials that partly deal with this issue, but haven't got anywhere so far.
Paste this function in your theme functions.php file and save the file.
function bfan() {
$pageID = 'Page ID/Page Vanity URL';
$info = json_decode(file_get_contents('http://graph.facebook.com/' . $pageID));
echo $info->likes;
}
Then you can call the function.
You will need to know your facebook page ID or facebook page name,then just substitute it in the code above.
Hope this helps you out.
Facebook has an API for finding out how many Facebook shares (likes etc.) a page has:
http://graph.facebook.com/?ids=https://stackoverflow.com/
I found here a simple and great solution: link
If you want see the evolution of your Top Social Stories in your Wordpress, you can use this plugin that tracks data from Facebook, Twitter and Google+ for each post and globally for all the links of your blog and export these data also in custom field to use them in your theme.
UPDATE: this plugin now tracks also Pinterest, Linkedin and Vkontakte and has many new features.

Categories