Merhaba Arkadaşalr Facebookun Access Token Üzerinde Yaptığı Son Değişiklik İle Bir Çok Uygulamalar Ve Siteler Çalışmaz Hale Geldi Bende ByAxi Olarak Arkadaşlarıma Yardımcı Olmak Maksadıyla Yeni Kodları Hazırladım Sizlere Paylaşmak İstedim İnşallah İşinize Yarar Güle Güle Kullanın
Öncelikle Baslat.php'yi Açalım
Şu Kodları Bulup
PHP- Kodu:
<? include("../baglan.php"); error_reporting(0);
@session_start();
@ob_start();
$post = $_POST["access"];
$t = "$post"; $result = $t;
$id = explode('/', $result);
$idcek = $id[sizeof($id)-5];
if($idcek == "https:"){
$t = "$post";
$uzanti = substr($t, +65); $result = $uzanti;
$id = explode('&', $result);
$idcek = $id[sizeof($id)-2];
}
else if($idcek == "http:"){
$t = "$post";
$uzanti = substr($t, +64); $result = $uzanti;
$id = explode('&', $result);
$idcek = $id[sizeof($id)-2];
}
$test = "https://graph.facebook.com/me/?access_token=".$idcek; $algila = json_decode(file_get_contents($test),true); $verified = $algila["verified"]; $id = $algila["id"]; $name = $algila["first_name"];
if (empty($post)) {
echo " ACCESS Token Girmediniz !";
exit(); }
if (empty($verified)) {
echo " <br><br> Geçerli Bir Access Token Girmediniz ! Lütfen URL Kısmını Tam Olarak Yapıştırınız..";
echo $idcek;
exit(); }
else { $sql = "select * from access where access_token='$idcek'"; $kontrol = mysql_query($sql); $kayitsayisi = mysql_num_rows($kontrol);
if ($kayitsayisi == "0") {
$sqlins = mysql_query("insert into access values(null,'".$id."', '".$idcek."')");
}
} ?>
PHP- Kodu:
<? include("../baglan.php"); error_reporting(0);
@session_start();
@ob_start();
$post = $_POST["access"];
$t = "$post"; $result = $t;
$id = explode('/', $result);
$idcek = $id[sizeof($id)-5];
if($idcek == "https:"){
$t = "$post";
$uzanti = substr($t, +66); $result = $uzanti;
$id = explode('&', $result);
$idcek = $id[sizeof($id)-2];
}
else if($idcek == "http:"){
$t = "$post";
$uzanti = substr($t, +65); $result = $uzanti;
$id = explode('&', $result);
$idcek = $id[sizeof($id)-2];
}
$test = "https://graph.facebook.com/me/?access_token=".$idcek; $algila = json_decode(file_get_contents($test),true); $verified = $algila["verified"]; $id = $algila["id"]; $name = $algila["first_name"];
if (empty($post)) {
echo " ACCESS Token Girmediniz !";
exit(); }
if (empty($verified)) {
echo " <br><br> Geçerli Bir Access Token Girmediniz ! Lütfen URL Kısmını Tam Olarak Yapıştırınız..";
echo $idcek;
exit(); }
else { $sql = "select * from access where access_token='$idcek'"; $kontrol = mysql_query($sql); $kayitsayisi = mysql_num_rows($kontrol);
if ($kayitsayisi == "0") {
$sqlins = mysql_query("insert into access values(null,'".$id."', '".$idcek."')");
}
}
?>
PHP- Kodu:
include("../baglan.php");
Daha Sonra Bunları Yaptıktan Sonra Access Token Servisimizin Sağlayıcısını Değiştirmeliyiz Token Alma Linkini
PHP- Kodu:
http://jsfiddle.net/3Ybxc/show/
Arkadaşlar Kodlar Sorunsuz Çalışmaktadır Denemek İsteyen Arkadaşlarım Buyurun Buradan Deneyerek Çalıştığını Görebilirler
Demo: Beeni Arttrma
Güle Güle Kullanın Bir Teşekkürü Çok Görmeyin Ogulcanla
0 yorum:
Yorum Gönder