Class RFacebook::FacebookDesktopSession
In: facebook_desktop_session.rb
Parent: FacebookSession



session_secret  [R]  you should need this for infinite desktop sessions

Public Class methods

Constructs a FacebookDesktopSession, calling the API to grab an auth_token.

api_key:your API key
api_secret:your API secret
quiet:boolean, set to true if you don‘t want errors to be thrown (defaults to false)

Public Instance methods

Activates the session and makes it ready for usage. Call this method only after the user has logged in via the login URL.

Activate using the session key and secret directly (for example, if you have an infinite session)

key:the session key to use
secret:the session secret to use

Gets the authentication URL page to redirect to after login
options.popup:boolean, whether or not to use the popup style (defaults to true)
options.skipcookie:boolean, whether to force new Facebook login (defaults to false)
options.hidecheckbox:boolean, whether to show the "infinite session" option checkbox (defaults to false)

returns true if this session is completely ready to be used and make API calls

Used for signing a set of parameters in the way that Facebook specifies: <>

params:a Hash containing the parameters to sign