Using your Facebook Page to feed your Blog posts.
In this article I will show you the steps I took to feed my Facebook page to the blog on my website. Items you will need for this tutorial: 1) Facebook fan page, 2)feedburner account, 3)an html page on your website where you would like to place the feed.)
Step 1:
- Go to your Facebook Fan Page
- On the lower left side click on “Subscribe via RSS”
- Inside the URL that shows up copy or write down your ID# (i.e. id=105481499496501)
Step 2:
- Go to your Google feedburner account and in the “Burn a feed right this instant” form place http://www.facebook.com/feeds/page.php?format=atom10&id=105481499496501 , replace my top five games id, with yours of course
- Click “Next”
- Feed Title and Address are automatically filled in, feel free to change the Title or the Subfolder of the URL, do not change the root URL.
- Click “Next”
- Click on the link that shows up for your feed
- in the “Subscribe Now” box click on “View Feed XML”
- Copy or write down this URL (i.e. http://feeds.feedburner.com/TopFiveGamessFacebookWall?format=xml”)
Step 3:
- Now on one of your pages, probably your blog page, include the code:
<?php$xml = simplexml_load_file(‘http://feeds.feedburner.com/HoodaMathsFacebookWall?format=xml’);foreach ($xml->entry as $entry){print “<p>”;$date = substr($entry->published,0,10);$date = strtotime($date);print date(‘F d, Y’,$date);print “<br \>{$entry->content}</p><br \>”;}?>
2. you have to save your page with a .php tag instead of .html
3. If you copied and pasted the code, you may need to delete and retype the single and double quotes, because they came across stylized.
4. don’t forget to switch out my xml url (i.e. http://feeds.feedburner.com/HoodaMathsFacebookWall?format=xml) for your own.
Nice post, especially impressed that you had the foresight to realize that people could have an issue if they didn’t realize they had to have the regular quotes.
One question: Each post that I make has the date, which is on top of the text, which is above the image, and underneath each image it says “wall photos”. Is there any way to control this so that it shows the image with out saying “wall photos”? You can see what I’m talking about here: http://www.slimekids.com/blog.php