コード例 #1
0
    public void OnFacebookInitialized()
    {
        // Once Facebook SDK is initialized, if we are logged in, we log out to demonstrate the entire authentication cycle.
        if (FB.IsLoggedIn)
        {
            ui.LoggedIn();
        }
        else
        {
            FB.LogInWithReadPermissions(null, OnFacebookLoggedIn);
        }

        // We invoke basic login procedure and pass in the callback to process the result
    }