使用asp.net应用程序以Facebook登录退出并清除所有cookie [英] Logout with facebook login with asp.net application and clear all cookies

查看:263
本文介绍了使用asp.net应用程序以Facebook登录退出并清除所有cookie的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序在vb.net中,并与facebbok集成. Facebook ID在我的应用程序中用作openid. Facebook用户使用我的应用程序轻松登录.现在问题与Facebook登录用户的注销时间.当用户从应用程序注销时,其重定向到登录页面.再次单击facebbok登录按钮,不要求重新输入用户名和密码,并直接使用我的应用程序登录.那么问题出在哪里呢?我清除所有cookie和应用程序缓存.我使用了asp:button的简单注销按钮.我没有使用javascript sdk将facebbok与我的应用程序连接.所有代码都在后面的代码中完成.

我使用此链接将facebbok与我的应用程序连接

http://osnapz.wordpress.com/2010/04/23/using-asp-net-with-facebooks-graph-api-and-oauth-2-0-authentication/

My application is in vb.net and integrated with facebbok. Facebook id is used as openid with my application. facebook user logged in easily with my application. now issue with the facebook login user logout time. when user logout from the application its redirect to login page. Again click on facebbok login button its not ask for reenter userid and password and direct login with my application. so what was the issue come? i clear all cookies and caches of application. i used simple logout button of asp:button. i not used javascript sdk for connect facebbok with my application. all code done in code behind.

I used this link to connect facebbok with my application

http://osnapz.wordpress.com/2010/04/23/using-asp-net-with-facebooks-graph-api-and-oauth-2-0-authentication/

推荐答案

看看使用Facebook退出 [
Have a look at Logout with facebook[^] and see if one of the suggested solutions works for you.

However if I understand it correctly there is no way to do it from code-behind.


这一方法行之有效.我已经在我的网站上对其进行了测试

http://facebooksdk.blogspot.com/2011/06/facebook-logout.html
This one works. I have tested it in my website

http://facebooksdk.blogspot.com/2011/06/facebook-logout.html


这篇关于使用asp.net应用程序以Facebook登录退出并清除所有cookie的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆