Facebook的注销C#SDK [英] Facebook logout C# SDK
问题描述
嗨结果
我有麻烦试图注销使用FB C#SDK的facebook。
Hi
I am having trouble trying to logout of facebook using the FB C# SDK.
下面是我的测试样本
var oauth = new FacebookOAuthClient();
oauth.AppId = fbSection.AppId;
string bbc = @"http://www.bbc.co.uk";
var logoutParameters = new Dictionary<string, object> {{ "next", bbc }} ;
this.NavigateUrl = oauth.GetLogoutUrl(logoutParameters).AbsoluteUri;
的问题是,汇入作业总是重定向到
The problem is that it´s always redirecting to:
http://m.facebook.com/
我试图重定向到一个外部网站在这种情况下bbc.co.uk,在我试图重定向到本地主机,并有同样的问题尚属首例。
I'm trying to redirect to an external site in this case bbc.co.uk, as in first case I tried redirecting to localhost and had the same problem.
我真的很喜欢难道不实现一个JavaScript的解决方案,因为我已经实现了我的登录功能服务器端。
I really wouldnt like to implement a javascript solution as I have already implemented my login functionality server side.
任何建议多AP preciated。
Any suggestions much appreciated.
推荐答案
过了一段时间我搜索跨此帖一:<一href=\"http://forum.developers.facebook.net/viewtopic.php?id=87109\">http://forum.developers.facebook.net/viewtopic.php?id=87109
After some time searching I came across this post: http://forum.developers.facebook.net/viewtopic.php?id=87109
这表明调用:
this.NavigateUrl = https://www.facebook.com/logout.php?next=[redirect_uri]&access_token=[access_token]
这对我的工作。
这篇关于Facebook的注销C#SDK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!