Riedayme
Riedayme

Script Facebook Photo Profile Guard


Script ini berfungsi untuk menambahkan pelindung pada foto profil facebook, berfungsi agar foto tidak bisa di unduh

<?php  
$token = "token Iphone";
$status = true; 
$md5 = md5(time());
$hash = substr($md5, 0, 8)."-".substr($md5, 8, 4)."-".substr($md5, 12, 4)."-".substr($md5, 16, 4)."-".substr($md5, 20, 12);

function file_get_contents_curl($url, $post=null) {
 $ch = curl_init();
 curl_setopt($ch, CURLOPT_HEADER, 0);
 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
 curl_setopt($ch, CURLOPT_URL, $url);
 if($post != null) {
  curl_setopt($ch, CURLOPT_POST, true);
  curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
 }
 curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
 $data = curl_exec($ch);
 curl_close($ch);
 return $data;
}

$me = json_decode(file_get_contents_curl("https://graph.facebook.com/me?fields=id&access_token=".$token));
if($me && $me->id) {
 $var = "{\"0\":{\"is_shielded\":{$status},\"session_id\":\"$hash\",\"actor_id\":\"$me->id\",\"client_mutation_id\":\"$hash\"}}";
 $hajar = json_decode(file_get_contents_curl("https://graph.facebook.com/graphql", array(
  "variables" => $var,
  "doc_id" => "1477043292367183",
  "query_name" => "IsShieldedSetMutation",
  "strip_defaults" => "{$status}",
  "strip_nulls" => "{$status}",
  "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 == true) {
  echo "Berhasil Mengaktifkan";
 }elseif($hajar->data->is_shielded_set->is_shielded == false) {
  echo "Berhasil Menghapus";
 }else {
  echo "Gagal";
 }
}
?>
4 Komentar
Facebook API

Artikel Terkait

Komentar

  1. Unknown
    Unknown 22 Juli 2018 01.42
    how i can to apply this script
    1. Riedayme
      Riedayme 22 Juli 2018 09.49
      you need access token for enable profile guard, for use this script you need apache server and php program. run localhost with xampp or upload to you hosting if you have.

      if you didn't understand search online tools for this
  2. Vido Kun
    Vido Kun 7 Agustus 2018 00.49
    tes
    1. Riedayme
      Riedayme 15 Mei 2020 03.57
      tes