0
我尝试登录facebook与webclient,但它只是返回登录页面,它不是loged到Facebook。我的代码有什么问题?webclient无法登录Facebook
System.Collections.Specialized.NameValueCollection collection = new System.Collections.Specialized.NameValueCollection();
collection.Add("email", "sadasfasdaddsfadfdf");
collection.Add("pass", "54");
client.Proxy = null;
byte[] result = client.UploadValues("https://www.facebook.com/login.php?login_attempt=1", "POST", collection);
System.IO.File.WriteAllBytes("result.html", result);
System.Diagnostics.Process.Start("result.html");
其实它会成为我的例子我将适用于另一个网站我使用Facebook,因为我认为我将是常见问题。是的,它返回我的网站,当我点击登录buton –
我从文档,其中包含值=“n”,每次获得此值 但在导航时发送了一些其他值,我在哪里可以找到真正的值,请帮助我 – Charlie