log in to facebook using solely a URL [closed]
This question does not appear to be about programming within the scope defined in the help center.
Closed 8开发者_如何学运维 years ago.
Improve this questioncould 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
精彩评论