Displaying your blog inside Facebook in 6 simple steps

Hey, did you know you could post your blog in a Facebook page and benefit from all of Facebook’s social bells and whistles without even installing a single plugin?
All you need to do is to get a free Facebook Application ID, create a Facebook “Fan page”, configure the Facebook app to grab a page from your blog, smack it onto a custom tab in the Fan page and bingo!
Let’s review in detail how this works step-by-step…
1 – Log into your personal Facebook account and connect to the “developer” app
If you don’t have one, now is the time to create a Facebook account! This account will be your developer’s account, and it needs to be the same account that you will use to create the blog “Fan page” inside Facebook. Otherwise Facebook won’t allow you to connect your custom “blog displaying app” with your “fan page”, except if you make your app public. Which it doesn’t need to be.
Now at the very bottom of the page, click on the “developers” link.
If it’s the first time you go there, you will be asked to grant access to the “developer app” to your account. Accept, and then click on the “Start now” green button in the upper-right corner of the page.
Click right away on the “Go to the Facebook Developer App” link.
Save this page as a bookmark, because you may have to come back here often and it seems there’s no link provided anywhere else in the Facebook interface.
2 – Create a new Facebook application
Click on the “Setup new application” button.
Choose a useful name for your application (like your blog’s name), and agree to the Facebook terms, then click “Save changes”.
You can fill up the optional information fields in the “Basic” settings tab, but don’t worry too much about those, they’re not mandatory and everything will work fine if you leave it blank. Your “blog displaying” app is not meant to get public anyways.
Click on the “Authentication” tab on the left, and check the Installable to… “FacebookPages” option. This is important.
Next click on the “Profiles” tab on the left, and choose a “tab name” that will be displayed on your Fan page. Make it short and meaningful: your blog content will appear under this tab name in your page.
Now you should switch to the “Canvas” tab on the left. Choose a Facebook “Canvas Page URL”. Again this is an internal name that won’t be displayed to the public, so choose whatever simple name you like (use only lowercase letters).
Now is time to make the single important choice in your configuration, which is decide the page URL of your blog that you will use to serve a stripped-down version of your blog appropriate for displaying inside Facebook.
For the following of this tutorial, let’s decide the Facebook blog page will be served from:
http://<your-blog.name>/facebook/home
The important point to remember here is that it’s probably good practice to choose a second-level URL, because Facebook will try to use two levels of URL directories to interact with your blog.
So in our example, Facebook will send http requests to both:
http://<your-blog.name>/facebook
and
http://<your-blog.name>/facebook/home
Only the second page url however needs to return something meaningful to Facebook. The first one should preferably display a blank page.
We’ll see how to achieve this in a moment.
Fill in the “Canvas Callback URL” field with the first-level blog page URL. In our example this will be:
http://<your-blog.name>/facebook
Now go back to the left-side “Profiles” configuration tab and fill in the “Tab url” field so as to complete the second-level blog page URL mentioned before. In our example this will be:
home
So that the full “Tab URL” now reads:
http://<your-blog.name>/facebook/home
Click on the “Save changes” button on the bottom of the page… your Facebook apps’ configuration is now over! – You’ll be able to come back to this confguration settings anytime later if you want to fill-up more optional fields to beef-up your app.
Continued on page 2…




le 21 December 2009 à 21:50 h
does this method only work for sites that can create pretty permalinks? i wanted to implement this on a blogger site.
le 22 December 2009 à 12:08 h
This method will work with any kind of page or url, even html static pages.
le 23 April 2010 à 16:48 h
Hello. I have followed your instructions and successfully created an app that pulls from my wordpress blog! Yea!
One problem. The pictures embedded in a post don’t show up? Well, that’s not exact true. INITIALLY they showed up, and now they aren’t showing up, but I’ve not changed a thing on my blog so trying to figure out what the problem is there? Any ideas? To see what I am talking about, go to http://www.facebook.com/pages/Savvy-Design-Divas/340132140442?v=app_375548276146&ref=ts
Thanks!
le 23 April 2010 à 16:51 h
@Jeanne:
I can very well see 2 embedded images in the Facebook note you linked.
So it looks like at least some of your images show up.
le 23 April 2010 à 17:03 h
Silly me, the pics show up fine. Google Chrome wasn’t happy about something, but all is well. Thanks again – great article!!
le 6 May 2010 à 16:16 h
Everything works except for the display of the website inside the tab, I’m receive errors like so, + FBML Error (line 17): illegal tag “body” under “fb:tab-position” +
which makes it seem I need to recode to FBML.
Thanks for your tutorial and help
le 9 July 2010 à 23:04 h
After adding the application to my Page, it does not appear in the list of tabs to add when you press the “+”… why ?
le 17 July 2010 à 2:41 h
hi,
after attempting to use your solution. I ended up deciding not to try this solution. I have since encountered a serious problem. I did actually copy my page php and renamed it facebook.php. I temporarily named a page on my wordpress blog “facebook,” that page is now deleted. For some reason, I can no longer access any part of my website on the internet. From any computer. I keep getting a 404 error.
For example, when I type in my site address, “http://cellphone-spyware.com” I get directed to “http://cellphone-spyware.com/facebook” This does not exist as a page. I get the 404 error. I can’t fix this. Help me please.
le 31 August 2010 à 21:24 h
First, I must say thank you again for such wonderful instructions. I have used this method on 4 different facebook pages. I have a new question though – I would like to have a post on my site that contains a contact form (contact form 7 is what I use) that is also displayed on a tab on my facebook page (using the above method). When I tested this, the contact form doesn’t quite work “within” the facebook tab…..It’s displayed fine, and I can populate the fields, hit send, but instead of the usual validation message returned, the page actuall re-routes to the Facebook canvas page for the application itself (which, is, interestingly, an iframe of my website, although it’s ‘page not found’ error). Any ideas?
le 23 September 2010 à 20:34 h
so i created the app and it works. but i am having the hardest time to add it to the fan page. when I click the + sign it does not show…
le 6 October 2010 à 22:23 h
[...] La suite de cet article (créer une page de fan dans Facebook) est pour l’instant disponible e… [...]
le 3 June 2011 à 10:21 h
You sould post some damn photos with this tutorial.
le 3 June 2011 à 13:00 h
@JonnyQ: send the photos over and I’ll be happy to post them.