
28-01-2012, 20:44:37
|
| |
Facebook Subscribe Call Back ? Lütfen Yardım :/ | | Merhaba arkadaşlar
Benim karşılıklı beğenme sistemiyle ilgili bir sitem var ve bu sitemde karşılıklı abone ol sistemi de eklemek istiyorum. Ama bu sitemin bu kişiye abone olduğunu anlaması lazım. Ne kadar yaptıysamda boş :|
Facebook sayfa beğenirken çalışıyor ama abone olurken çalışmıyor.
Call Back yani geri dönüş yapmıyor.
Yapabilecek arkadaş varsa Allah rızası için yapsın 
Buyrun kod: PHP- Kodu: <?
include('header.php');
?><div class="block medium right">
<div class="top"><?if(isset($data->login)) {?>
<h1>Kredi Kazan - Facebook Abone</h1>
</div>
<div class="content">
<?
$site2 = mysql_query("SELECT * FROM `abone` WHERE (`active` = '0' AND `points` >= `cpc`) AND `id` NOT IN (SELECT `site_id` FROM `aboneolanlar` WHERE `user_id`='{$data->id}') ORDER BY `cpc` DESC LIMIT 0, 10");
$ext = mysql_num_rows($site2);
if($ext > 0){
?>
<p>Just keep clicking buttons, and you will got 1 Coin for each click. After any click - be patient. Sometimes this needs couple of seconds.</p>
<script language="javascript">
function refreshpage()
{
window.location.reload();
}
</script>
<div id="fb-root"></div>
<script>
window.fbAsyncInit = function() {
FB.init({status: true, cookie: true, xfbml: true});
var user= "<? echo $data->id;?>";
document.getElementById("Hint").style.display='block';
FB.Event.subscribe('edge.create', function(response) {
$.ajax({
type: "POST",
url: "fbareceive.php",
data: "data="+response + "---" + user,
cache: false
});
$("#Hint").html('<font size="3"><b>Liked with success!</b></font>');
removeElement('tbl', response);
});
};
(function() {
var e = document.createElement('script');
e.type = 'text/javascript';
e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';
e.async = true;
document.getElementById('fb-root').appendChild(e);
}());
function removeElement(parentDiv, childDiv){
if (document.getElementById(childDiv)) {
var child = document.getElementById(childDiv);
var parent = document.getElementById(parentDiv);
parent.removeChild(child);
}
}
</script>
<center><div id="Hint" style="display:none;"></div></center>
<div id="tbl">
<?
for($j=1; $site = mysql_fetch_object($site2); $j++)
{
?>
<div class="tbl tbl-facebook" id="<? echo $site->abone;?>">
<a href="#" class="close" onclick="removeElement('tbl','<? echo $site->abone;?>');">x</a>
<div class="fb-subscribe" data-href="<? echo $site->abone;?>" data-layout="button_count" data-show-faces="true" data-width="450"></div></div>
<div class="title"><a href="<? echo $site->abone;?>" target="_blank" style="color:blue;"><? echo $site->title;?></a></div>
<div class="points">Coins: <b><? echo $site->cpc;?></b></div>
</div>
<?}?>
</div>
<br>
<div class='infobox'>Like the pages and refresh page to see the addition of points!
<form action='' method='' onsubmit='refreshpage();'>
<input name='refresh' type='submit' value='Refresh'>
</form></div>
<?}else{?>
<div class="msg">
<div class="error">Sorry, there are no more coins to be earned at the moment. Please try again later.</div>
<div class="info"><a href="buy.php"><b>Feel like you need more coins? You can purchase them now!</b></a></div></div>
<?}}else{?><script>document.location.href='index.php'</script><?}?>
</div>
</div>
<?include('footer.php');?>
__________________ Durumika.Tk ile Facebook Durumu Beğendir !
Konu RamTur tarafından (28-01-2012 Saat 22:55:09 ) değiştirilmiştir..
|