简体   繁体   English

Facebook SDK C#Windows Phone 8.1(非Silverlight)

[英]Facebook SDK C# Windows Phone 8.1 (Non Silverlight)

I've got a trouble with Facebook OAuth authentication in my Windows Phone 8.1 app and I've done everything like this tutorial: blog 我在Windows Phone 8.1应用程序中遇到了Facebook OAuth身份验证的麻烦,我已经完成了本教程的所有内容: 博客
It works fine, but there is one very annoying thing: Every time when I tap on Login button I got a popup " You have already authorized this app ". 它工作正常,但有一个非常恼人的事情:每当我点击登录按钮时,我得到一个弹出窗口“ 你已经授权这个应用程序 ”。
I spent on this trouble a lot of time so please help me. 我花了很多时间来解决这个问题所以请帮助我。
Thank you in advance. 先感谢您。

It's still actually. 实际上它仍然存在。

I figured out the solution to this. 我找到了解决方案。 When the user taps on the connect to facebook Login button, I silently call the logout uri using WebAuthenticationBroker.AuthenticateSilentlyAsync . 当用户点击连接到Facebook登录按钮时,我使用WebAuthenticationBroker.AuthenticateSilentlyAsync静默调用注销uri。 This does not open the UI thread and logs out the previously logged in user before opening the facebook connect dialog. 在打开Facebook连接对话框之前,这不会打开UI线程并注销先前登录的用户。

So essentially every time a user tries to connect my application to facebook, it logs out the previous logged in user before presenting the connect dialog.I figured out the solution to this. 因此,基本上每次用户尝试将我的应用程序连接到Facebook时,它都会在显示连接对话框之前注销之前登录的用户。我找到了解决方法。 When the user taps on the connect to facebook button, I silently call the logout uri using WebAuthenticationBroker.AuthenticateSilentlyAsync . 当用户点击连接到Facebook按钮时,我使用WebAuthenticationBroker.AuthenticateSilentlyAsync静默调用注销uri。 This does not open the UI thread and logs out the previously logged in user before opening the facebook connect dialog. 在打开Facebook连接对话框之前,这不会打开UI线程并注销先前登录的用户。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM