FAQ about starting fb apps on rails

Q: which plugin/gem that i should used?
A: because of fb itself doesn’t provide an official plugin for rails so we used unofficial plugin. there are some unofficial plugin: RFacebook, facebookers & facebookers 2 (+ Mogli)
RFacebook is not maintenanced, so you should not used that, the remaining options are facebookers & facebookers 2
Facebookers have many obsolete functions (maybe because they still use the old REST APIs),
while facebookers 2 (+ Mogli) despite already using the new Graph API at the time of this writing (10-08-10) still have not completed it can be seen in the mongli readme file stating “

Feel free to add missing Associations if you see Them as well. My goal is to get a Readonly API in place first, and then
move on to the read / write API

so maybe there still Graph APIs features that can not be used in full CMIIW

Temporary conclusion: if your application only use features of FBML without Graph API, facebookers can be used (although you still need to be careful because there are obsolete fbml helpers, so see references in http://developers.facebook.com/docs/reference/fbml/)
, But if you need to use Graph API use mogli (+ Facebooker2) but if you need features not available in mogli you should make your own with gem HTTParty and guidance in http://developers.facebook.com/docs/api Graph API

Q: why canvas blank when i choose the FBML option althought it’s okay when using iFrame
A: Maybe you not use the tunnel (see below) or you use tag that should not be used

Q: Why should I use the tunnel? and how?
A-1: if you use the FBML, facebook need to parse your pages before they are displayed on the user. that’s why, if you use relative url (like localhost) or non-public ip facebook can’t access your page so the canvas is empty!

A-2: register at tunnlr.com (free for first 90 days)
-When you do ssh (using either the console or via putty) use the username provided by tunnlr (usually tunnlr ) rather than username to log into tunnlr!
-If ssh tunneling is successful, you can enter the url given to you by tunnlr in the Canvas url on facebook (remember the url given for the tunneling (usually web1.tunnlr.com: ) rather than the url for login (usually .Tunnlr.com))


Tags: ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: