JS API M FB.Connect.IfUserConnected
From Facebook Developer Wiki
public static void ifUserConnected (object connectedArg, object notConnectedArg)
Description
Helper function to take action once the current user's connect status is determined. If the user is connected with this site, this will invoke connectedArg. If not, then this will invoke notConnectedArg.
Parameters
| Required | Name | Type | Description | |
| required | connectedArg | object | This parameter can be either a function that takes a string argument for UID or string to a URL. If a function is passed, then the function would be invoked if the user is connected. If a string is passed, then the browser will be redirected to the URL specified in the string if the user is connected | |
|---|---|---|---|---|
| notConnectedArg | object | This parameter can be either a function or string to a URL. If a function is passed, then the function would be invoked if the user is not connected. If a string is passed, then the browser will be redirected to the URL specified in the string if the user is not connected |
Back to class public FB.Connect
