Help with facebooker and Desktop Sessions

Hi all, I’m trying to get a Facebook Desktop Session with facebooker
and rails 2.3.2
I’m trying this in the console:

session = Facebooker::Session::Desktop.create
=> #<Facebooker::Session::desktop:0xb759d4b0
@secret_key=“123”, @uid=nil,
@api_key=“1234”, @session_key=nil, @expires=nil,
@secret_from_session=nil, @batch_request=nil, @auth_token=nil>

session.auth_token = “123456”
session.secure_with!(“45678”, uid, 0)

=> nil


Facebooker::Session::IncorrectSignature: Incorrect signature

I get Incorrect signature error, anybody canb help me?

I got the session_key from a debug(@facebook_session) in my controller,
I need to get the session from a script that doesn’t run in web browser.

So, the 2 Big questions are:

1- How can I create a Desktop User Session with facebooker from irb or
from a
script with the email and the password of the user?

2- How can I get a Desktop User Session with facebooker from user
session id?

I’m working on a web service, so didn’t run under a web browser


Ruby 1.8.6#114
Rails 2.3.2
Facebooker 1.0.31

Thanks in advance.

“Programs must be written for people to read, and only incidentally for
to execute.”

(Abelson & Sussman, SICP, preface to the first edition)

Gastón Ramos
GNU/Linux Counter user #450312

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs