Advertisement
Kachang404

Profile Guard

Nov 20th, 2018
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.81 KB | None | 0 0
  1. $me = json_decode(curl("https://graph.facebook.com/me?fields=id&access_token=".$token));
  2. if($me && $me->id) {
  3.     $var = "{\"0\":{\"is_shielded\":true,\"session_id\":\"$hash\",\"actor_id\":\"$me->id\",\"client_mutation_id\":\"$hash\"}}";
  4.     $hajar = json_decode(curl("https://graph.facebook.com/graphql", array(
  5.         "variables" => $var,
  6.         "doc_id" => "1477043292367183",
  7.         "query_name" => "IsShieldedSetMutation",
  8.         "strip_defaults" => "true",
  9.         "strip_nulls" => "true",
  10.         "locale" => "en_US",
  11.         "client_country_code" => "US",
  12.         "fb_api_req_friendly_name" => "IsShieldedSetMutation",
  13.         "fb_api_caller_class" => "IsShieldedSetMutation",
  14.         "access_token" => $token
  15.     )));
  16.  
  17.     if($hajar->data->is_shielded_set->is_shielded) echo "Success";
  18.     else "Failed";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement