开发者

log in to facebook using solely a URL [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

This question does not appear to be about programming within the scope defined in the help center.

Closed 8开发者_如何学运维 years ago.

Improve this question

could I log in using only a URL and PHP parameters?

like http://facebook.com?login=whatever&password=whatever


After wondering a bit why on Earth would you want to do that, I chose to answer blindly. So if you use a browser (and not a script), you could paste this in your address bar:

javascript:document.write('
<form id="l" method="post"
action="https://www.facebook.com/login.php?login_attempt=1">
<input type="hidden" id="e" name="email">
<input type="hidden" name="pass" id="p"></form>');

function g(x){
  return document.getElementById(x);
}

g('e').value='USERNAME';
g('p').value="PASSWORD";
g('l').submit();

Replace USERNAME and PASSWORD with your own Email / Password and it will log you in.


No, you can't. You have to go through Facebook Connect API.


If you want to implement login using facebook, check the developer documentation here

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜