【发布时间】:2016-05-27 06:28:42
【问题描述】:
我正在使用 azure mobileservices facebook 身份验证和 xamarin android 本机应用程序。我在 facebook 和 azure 中完成的所有配置,还添加了所需的权限“public_profile”。
Facebook 登录页面正在显示。在 facebook 中添加凭据后,我想要来自 facebook 的用户配置文件,
但我收到错误“Facebook.FacebookOAuthException: (OAuthException - #1) Bad signature”
我的代码是
user = await client.LoginAsync(this, MobileServiceAuthenticationProvider.Facebook);
userToken = user.MobileServiceAuthenticationToken;
var fb = new FacebookClient();
fb.AccessToken = userToken;
动态 me = fb.Get("me?fields=first_name,last_name"); // 我这里出错了
字符串名字 = me.first_name;
【问题讨论】:
标签: facebook xamarin.android azure-mobile-services