Forum: Ruby Help with facebooker and Desktop Sessions

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
86112553d9846f4c7b16e8bfee1f28f4?d=identicon&s=25 Gastón Ramos (gramos)
on 2009-05-05 21: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

Versions:

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
machines
to execute."

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


+-------------------------------------+
Gastón Ramos
http://gastonramos.com.ar/
GNU/Linux Counter user #450312
This topic is locked and can not be replied to.