private void TakeLoggedInAction(FacebookOAuthResult facebookOAuthResult)
if (facebookOAuthResult == null)
// the user closed the FacebookLoginDialog, so do nothing.
// Even though facebookOAuthResult is not null, it could had been an
// OAuth 2.0 error, so make sure to check IsSuccess property always.
// since our respone_type in FacebookLoginDialog was token,
// we got the access_token
// The user now has successfully granted permission to our app.
var dlg = new InfoDialog(facebookOAuthResult.AccessToken);
// for some reason we failed to get the access token.
// most likely the user clicked don't allow.