« Facebook Plugin Overview Picture | Main | Creating Facebook Forms with Facebooker »

January 28, 2008

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a00d83452ff9b69e200e54ff351bf8833

Listed below are links to weblogs that reference Facebooker Quick Start - Facebook & Rails:

Comments

divebomber

Thanks a lot for this guide. I've been looking for some confirmation that Facebooker works. Did you use Rails > 2.0?

Joel Nylund

Your welcome, I will post an update to this example in a couple days after the team does one more fix to make it easier to sandbox your facebook app. Im using 1.2.6, but it should work fine under 2.x (actually all the developers of facebooker are running 2.x)

Fernando Correia

Thank you for this article. It was helpful to me, for I am learning Facebook as I develop an open source sample Facebook app:

http://rubyforge.org/projects/wisdomgems/

I had to adapt some file names: facebook.fbml.erb and index.fbml.erb. Also, I think the layout needs some adjustments. For me, the #layout line was being shown on Facebook so I deleted it. I also closed the tag, even though I'm not sure it needs closing.

Alex

I can see my own app in facebook but when I try to navigate to the face_controller it comes up with this error

Facebooker::Session::IncorrectSignature

Any ideas?

Joel Nylund

Fernando - your welcome, I will remove the #layout, that was just a comment. Which tag did you close? I will update the example if its wrong.


Alex - to go to your face controller you need to go via facebook via http://apps.facebook.com/yourapp which will call the controller with the proper parameters. You cant go directly to it.

Joel Nylund

I see, I have updated the example to remove the #layout comment as its not valid in an rhtml file, also I have added a close tag for in the layout.

There is a much better way to setup the routing and links, I will redo this once the patch is checked in to facebooker.

Shanti Braford

Facebooker looks sweet. I've used the other Facebook ruby library, but will give this one a try for my next Rails app.

S Woodside

There's currently a bug in the installer. When you try to run mongrel or script/generate the plugin you get "no such file to load -- net/http_multipart_post". The installer isn't copying a file over into vendors/plugins. To fix this, you have to also do:

svn co http://facebooker.rubyforge.org/svn/trunk/facebooker/

cp facebooker/lib/net/http_multipart_post.rb vendor/plugins/facebooker/lib/net/

Then delete the checked out facebooker directory.

jm

I also have the same error :

Facebooker::Session::IncorrectSignature

what does that really mean ? But only when i use a form.

If i dont use a form i must use url like this :

http://apps.facebook.com.myapp//action

Any clue ?

Daniel Bigham

It should be noted that you need to restart your web server after you install the facebooker plugin in step 2, otherwise you'll get the following error when you add ensure_authenticated_to_facebook to your controller:

undefined method `ensure_authenticated_to_facebook' for YourController:Class

Matt

Trying out your sample code, I always get the following exception: #
It seems that I need an "infinite session key". Do you know what I did wrong?

Matt

the exception: Facebooker::Session::MissingOrInvalidParameter: Invalid parameter

aurels

Hi,

For persons having various exceptions for sessions, have you correclty said Rails to use ActiveRecord for storing sessions?

Tom

The link in step 1 is broken, do you have an alternate link?

prabha

I need to generate links in for my application. I use url_for(:controller => 'posts' , :action => 'index').But the links are broken, like it generates /posts/index instead of http://appa.facebook.com/myapp/posts/index.I don't use a named route.Will url_for work in facebooker only if i pass the :canvas,:only_path and :skip_relative_path params?

Rajan

Thanks for tutorial. I have installed Facebooker plug-in about to create controller as suggested in tutorial and got following error.
Did I miss anything ?

===============================================================
C:\temp\quickstart>ruby script\generate controller Face index
c:/ruby186/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original
_require': C:/temp/quickstart/vendor/plugins/facebooker/lib/facebooker/models/us
er.rb:288: syntax error, unexpected $end, expecting kEND (SyntaxError)
from c:/ruby186/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
from c:/ruby186/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_su
pport/dependencies.rb:510:in `require'
from c:/ruby186/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_su
pport/dependencies.rb:355:in `new_constants_in'
from c:/ruby186/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_su

========================================================

Thanks in advance
Regards
Rajan

Joel Nylund

Hey Rajan, this example is really old, I wouldn't use it anymore. But I think your problem is from facebooker, see : http://railsforum.com/viewtopic.php?pid=84680. You may just want to add the end for now and go on.

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment