0
在我的應用程序中,我希望發佈一條短信在facebook壁上的streemPublish,但它不工作,任何人都可以告訴我我做了什麼錯別的,指導我一個好的工作教程, 也下面的代碼不顯示任何錯誤....FBJS 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>