Forum: Ruby Help with facebooker and Desktop Sessions

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Gastón R. (Guest)
on 2009-05-05 23:29
(Received via mailing list)
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
>> session.user.friends

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 topic is locked and can not be replied to.