退出Facebook按钮 [英] Logout Facebook Button

查看:134
本文介绍了退出Facebook按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好我正在尝试制作一个可以让我退出Facebook的按钮,这是我的代码



Hello I am trying to make a button which can log me out of facebook here is my code

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
WebBrowser1.Document.GetElementById("logout_form").InvokeMember("click")
end sub





但它不起作用。请帮帮我。



But it is not working. Help me please.

推荐答案

Hey Lssn;顺便说一句。你的代码: -

WebBrowser1.Document.GetElementById(logout_form)。InvokeMember(click)



我想这是一个创意这样做的方式,但这不是确切的方式;我修复了问题:我认为IDlogout_form不是点击按钮,而是提交此ID,所以>而不是(点击)put(submit) - 所以它将是:

WebBrowser1.Document.GetElementById(logout_form)。InvokeMember(submit)





它会工作......;)
Hey Lssn; btw. your code :-
WebBrowser1.Document.GetElementById("logout_form").InvokeMember("click")

I guess it's a creative way to do this, but it's not the exact way; I fixed the problem : I think the ID "logout_form" is not a button to click, it's about submitting this ID, So > Instead of ("click") put ("submit") - So it'll be :
WebBrowser1.Document.GetElementById("logout_form").InvokeMember("submit")


It'll work ...... ;)


试试这个

首先登录你的FB帐户(使用chrome,IE等)

然后按你的方式退出,

快!当页面重定向副本时页面将重定向到注销页面

URL。

现在在注销按钮的点击事件中添加:

Try this
First Login to your FB account(using chrome, IE etc.)
Then Logout as you do,
FAST! The page will redirect you to the logout page when it's redirecting copy
the URL.
Now on the logout button's click event add this :
<pre lang="c#">Webbrowser1.Navigate("The URL you copied")



~Sids123


~Sids123


这篇关于退出Facebook按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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