Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $me = json_decode(curl("https://graph.facebook.com/me?fields=id&access_token=".$token));
- if($me && $me->id) {
- $var = "{\"0\":{\"is_shielded\":true,\"session_id\":\"$hash\",\"actor_id\":\"$me->id\",\"client_mutation_id\":\"$hash\"}}";
- $hajar = json_decode(curl("https://graph.facebook.com/graphql", array(
- "variables" => $var,
- "doc_id" => "1477043292367183",
- "query_name" => "IsShieldedSetMutation",
- "strip_defaults" => "true",
- "strip_nulls" => "true",
- "locale" => "en_US",
- "client_country_code" => "US",
- "fb_api_req_friendly_name" => "IsShieldedSetMutation",
- "fb_api_caller_class" => "IsShieldedSetMutation",
- "access_token" => $token
- )));
- if($hajar->data->is_shielded_set->is_shielded) echo "Success";
- else "Failed";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement