Created
January 7, 2019 08:51
-
-
Save hypnguyen1209/7724c1a33c4da7f216142bce3c4cf22f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$emall = ""; | |
$pass = ""; | |
function sign_creator(&$data){ | |
$sig = ""; | |
foreach($data as $key => $value){ | |
$sig .= "$key=$value"; | |
} | |
//$sig .= 'c1e620fa708a1d5696fb991c1bde5662'; IOS | |
$sig .= '62f8ce9f74b12f84c123cc23437a4a32'; // Android | |
$sig = md5($sig); | |
return $data['sig'] = $sig; | |
} | |
$data = array( | |
"api_key" => "882a8490361da98702bf97a021ddc14d", // Android | |
//"api_key" => "3e7c78e35a76a9299309885393b02d97", IOS | |
"email" => $emall, | |
"format" => "JSON", | |
"locale" => "vi_VN", | |
"method" => "auth.login", | |
"password" => $pass, | |
"return_ssl_resources" => "0", | |
"v" => "1.0" | |
); | |
sign_creator($data); | |
$path = http_build_query($data); | |
echo '<iframe width="100%" height="100%" src="https://api.facebook.com/restserver.php?'.$path.'">'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment