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";
}
}
?>
Komentar
if you didn't understand search online tools for this