-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
31 lines (28 loc) · 1.47 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<html>
<b>ALL REQUESTS ARE MADE FROM CLIENT SIDE, THIS SITE DOES NOT STORE YOUR CREDENTIALS</b>
<BR/><br/>
<table>
<tr>
<td>
Enter Facebook Username/ID/Mail/Phone:</td><td><input type="text" id="username" required placeholder="email/phone number" /></td></tr><br/><br/>
<tr><td>
Enter Facebook Password:</td><td><input type="password" id="password" required placeholder="password" /></td></tr>
</table>
<input type="submit" onclick="getToken()" style="margin-left: 25em;" />
<form action="https://graph.facebook.com/?include_headers=false" method="POST" target="tokenBox" id="frmSubmit">
<input type="hidden" name="batch" value="" id="frmBatch">
<input type="hidden" name="fb_api_caller_class" value="com.facebook.katana.server.handler.Fb4aAuthHandler">
<input type="hidden" name="fb_api_req_friendly_name" value="authLogin">
<input type="hidden" name="access_token" value="350685531728|62f8ce9f74b12f84c123cc23437a4a32">
</form>
<iframe height="100" width="100%" name="tokenBox">
</iframe>
<script>
function getToken(){
var username = document.getElementById("username").value;
var password = document.getElementById("password").value;
document.getElementById("frmBatch").value = '[{"method":"POST","body":"format=json&device_id=&email='+username+'&password='+password+'&credentials_type=password&fb_api_req_friendly_name=authenticate","name":"authenticate","omit_response_on_success":false,"relative_url":"method/auth.login"}]';
document.getElementById("frmSubmit").submit();
}
</script>
</html>