# Help with facebooker and Desktop Sessions

**URL:** <https://www.ruby-forum.com/t/help-with-facebooker-and-desktop-sessions/167242>\
**Category:** Ruby\
**Created:** [May 5, 2009, 9:29pm UTC](https://www.ruby-forum.com/t/help-with-facebooker-and-desktop-sessions/167242 "2009-05-05T21:29:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gramos](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/4da419/32.png) [@gramos](https://www.ruby-forum.com/u/gramos)\
**Post date:** [May 5, 2009, 9:29pm UTC](https://www.ruby-forum.com/t/help-with-facebooker-and-desktop-sessions/167242/1 "2009-05-05T21:29:36Z")

</div>

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:🖥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/](http://gastonramos.com.ar/)  
GNU/Linux Counter user #450312
