Selamun Aleykum ,  Bugun Sizlere Yeni Acces Token Kodlarini Verecegim,  By Axiye Burdan Teşekkürlerimizi İletiyoruz :)

Öncelikle Baslat.php'yi Açalım
Şu Kodları Bulup


<? 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."')");   

}
} 
?>

 Aşağıdaki Verdiğim Kodla Değiştirin.


<? 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."')");   

}
}
?>
Bazı Arkadaşlarımızın baglan.php Dosyası Farklı Olabiliyor O Yüzden
PHP- Kodu:
include("../baglan.php");  
Bu Kısma Dikkat Edin Doğru Dosya Yolu Olduğundan Emin Olun

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/  
Bu Link İle Değiştirmelisiniz

Arkadaşlar Kodlar Sorunsuz Çalışmaktadır Denemek İsteyen Arkadaşlarım Buyurun Buradan Deneyerek Çalıştığını Görebilirler

Demo: Beeni Arttrma

About Unknown

Web Sayfamızda, Bilgisayar, İntenret, Güvenlik Sistemleri, Cep Telefonları, Tablet Bilgisayarlar, Navigation Sistemleri, Modem Kurulumları ve Smart TV ayarları ile ilgili tamamı görsel anlatımla hazırlanmış makaleler bulabilirsiniz. Keyifli Zaman Geçirmenizi Dileriz.
«
Next
Sonraki Kayıt
»
Previous
Önceki Kayıt

Hiç yorum yok :

Yorum Gönder