FB.Connect.requireSession

Description

Call this function when you want to enforce that the current user is logged into Facebook.

簽名

requireSession(Function callback,  Function onCancelCallback,  Boolean isUserActionHint)

Parameters

callbackFunction

callback function to be invoked when session is ready. This parameter may be null

callback should be a function with no parameters.

onCancelCallbackFunction

Callback function to be invoked when a user cancels the connect request by clicking the close or cancel buttons

onCancelCallback should be a function with no parameters.

isUserActionHintBoolean

provide hint on whether the call is made from user action (onclick, onkeydown, etc.) This hint is generally necessary unless the function is initialized from a Flash object.