Example #1
0
        private static string GetUserAccessToken(string appId, string scope = null)
        {
            if (!IsValidUserAccessToken(USER_TOKEN))
            {
                FacebookLoginForm form = new FacebookLoginForm(appId, scope);
                form.ShowDialog();
                USER_TOKEN = form.UserAccessToken;
            }

            return(USER_TOKEN);
        }
Example #2
0
        private static string GetUserAccessToken(string appId, string scope = null)
        {
            if (!IsValidUserAccessToken(USER_TOKEN)) {
                FacebookLoginForm form = new FacebookLoginForm(appId, scope);
                form.ShowDialog();
                USER_TOKEN = form.UserAccessToken;
            }

            return USER_TOKEN;
        }