Facebook订阅回电
问题描述:
Facebook订阅没有回电。回调如何成功?Facebook订阅回电
<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
});
(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); }());
</script>
答
$ .ajax()是一个jQuery函数。请阅读相关文章:http://api.jquery.com/jQuery.ajax/
简述:
$.ajax({
type: "POST",
url: "fbareceive.php",
data: "data="+response + "---" + user,
cache: false,
success: function(){
alert('Success');
}
});
我不知道你需要什么。你需要解释更多。用你的语言写下你需要的东西。使用小而简单的句子。使用本网站翻译成英文。 http://babelfish.yahoo.com/然后在这里复制结果。 – 2012-01-31 19:51:44