Fer*_*osé 6 facebook facebook-graph-api xamarin xamarin.forms
我\xc2\xb4am 按照本教程登录facebook xamarin使用xamarin 登录facebook,有时我会收到以下错误:
\n\n{\n"error": {\n "message": "Bad signature",\n "type": "OAuthException",\n "code": 190,\n "fbtrace_id": "AO97gtDS9YV3BPFzKKM4vUG"\n }\n}\nRun Code Online (Sandbox Code Playgroud)\n\n我有方法,如果我调试并获取变量 requestUrl 并放入浏览器中,我会得到上面的 json 错误:
\n\npublic async Task<FacebookProfile> GetFacebookProfileAsync(string accessToken)\n {\n\n var requestUrl = new Uri(string.Format("https://graph.facebook.com/v3.0/me/?fields=id,name,picture.width(500).height(500),email,gender&access_token={0}", WebUtility.UrlEncode(accessToken)));\n\n var httpCliente = new HttpClient();\n\n var response = await httpCliente.GetStringAsync(requestUrl);//the exception happens here\n\n var facebookProfile = JsonConvert.DeserializeObject<FacebookProfile>(response);\n\n return facebookProfile;\n }\nRun Code Online (Sandbox Code Playgroud)\n\n为什么会发生这种情况以及我该如何解决这个问题?
\n| 归档时间: |
|
| 查看次数: |
3085 次 |
| 最近记录: |