如何防止“您已经授权了此应用" Facebook上的消息在WP8.1中连接? [英] How to prevent "You have already authorized this app" message on Facebook connect in WP8.1?
问题描述
我正在学习在WP8.1中集成Facebook登录.我的问题是,每次我按下连接按钮时,我都需要 facebook询问我的身份证明,但是它没有这样做,它会记住上一次登录并提示您已经授权了my_app_name".我该如何解决?无论如何,我可以阻止Facebook记住上一次登录吗? 我遵循了这教程,仅供参考>
任何帮助将不胜感激.谢谢.
我想出了解决方案.当用户点击连接到Facebook"按钮时,我使用WebAuthenticationBroker.AuthenticateSilentlyAsync
静默调用注销uri.在打开Facebook连接对话框之前,这不会打开UI线程并注销以前登录的用户.
因此,基本上,每当用户尝试将我的应用程序连接到facebook时,它都会在显示连接对话框之前注销先前登录的用户.
I'm learning to integrate facebook login in WP8.1. My problem is that I need facebook to ask me for my credentials every time I press the connect button but it does not do that, it remembers the last log in and prompts "You have already authorized my_app_name". How do I go around this? Is there anyway I can prevent facebook to remember the last login? I've followed THIS tutorial, just fyi
Any help would be really appreciated. Thanks.
I figured out the solution to this. When the user taps on the connect to facebook button, I silently call the logout uri using WebAuthenticationBroker.AuthenticateSilentlyAsync
. This does not open the UI thread and logs out the previously logged in user before opening the facebook connect dialog.
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.
这篇关于如何防止“您已经授权了此应用" Facebook上的消息在WP8.1中连接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!