Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/google-app-engine/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Facebook FBJS streemPublish不工作_Facebook_Fbjs - Fatal编程技术网

Facebook FBJS streemPublish不工作

Facebook FBJS streemPublish不工作,facebook,fbjs,Facebook,Fbjs,在我的应用程序中,我想在facebook wall streemPublish中发布一条短信,但它不起作用,有人能告诉我我做错了什么吗?还有人能给我一个很好的工作指南吗, 下面的代码也没有显示任何错误 这是我的密码 <body> <script src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php" type="text/javascript"></script

在我的应用程序中,我想在facebook wall streemPublish中发布一条短信,但它不起作用,有人能告诉我我做错了什么吗?还有人能给我一个很好的工作指南吗, 下面的代码也没有显示任何错误

这是我的密码

<body>
<script src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php" type="text/javascript"></script>

<script type="text/javascript">

function publish() {
 FB_RequireFeatures(["Connect"], function() {
   FB.Facebook.init('113700398662301', 'xd_receiver.htm');
                FB.ensureInit(function() {

                    var message = 'this is message';

                    var action_links = [{ 'text': 'Vote for Bill The Aircraft Carrier!', 'href': 'http://spayday.factor360.com/contest.html?page=viewInd&id=48082&contestId=2'}];
                    FB.Connect.streamPublish(message, action_links, null, "Share your support for Bill The Aircraft Carrier!", callback, false, null);
                });

    function callback(post_id, exception) {
        alert('Wall Post Complete');
    }

 });
}
</script>

</body>
<p>Stream Publish Test</p>
<a href="#" onclick="publish(); return false;">Post a story</a>

</html>


函数发布(){
FB_要求功能([“连接”],功能(){
FB.Facebook.init('113700398662301','xd_receiver.htm');
FB.ensureInit(函数(){
var message='这是消息';
var action_links=[{'text':'投票支持航空母舰法案!','href':'http://spayday.factor360.com/contest.html?page=viewInd&id=48082&contestId=2'}];
FB.Connect.streamPublish(消息,动作链接,空,“分享你对航空母舰比尔的支持!”,回调,假,空);
});
函数回调(post_id,异常){
警报(“墙柱完成”);
}
});
}
流发布测试


代码看起来有点过时。检查此项以获取有关流发布的更新信息

这是用来设置FB初始化的