Untitled

 avatar
unknown
plain_text
2 years ago
833 B
7
Indexable
<?php
ini_set('display_errors', '1');
ini_set('display_startup_errors', '1');
error_reporting(E_ALL);
$username = $_GET['username'];
$password = $_GET['password'];

$headers = array('User-Agent'=>'Mozilla/5.0 (Linux; Android 5.1.1; SM-N9208 Build/LMY47X) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.81 Mobile Safari/537.36');

$params = "access_token=350685531728|62f8ce9f74b12f84c123cc23437a4a32&format=json&sdk_version=2&email=$username&locale=en_US&password=$password&sdk=ios&generate_session_cookies=1&sig=3f555f99fb61fcd7aa0c44f58f522ef6";

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://b-api.facebook.com/method/auth.login?".$params);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER,$headers);



$output = curl_exec($ch);
$col = json_decode($output);
print_r($col);
?>
Editor is loading...