FB.ApiClient.defaultCreateSession

Description

Most basic method to call in order to get a session for the current user; redirect to the Facebook login screen, and have the user login if necessary, then be redirected back.

Signature

defaultCreateSession(ApiClient apiClient,  Function callback)

Parameters

apiClientFB.ApiClient

Instance of the Facebook API client for which we need a session

callbackFunction

Function to call upon successful session creation

callback should have the following signature: function(session).