2010-01-21 94 views
1

我想在外部Facebook Connect網站上發佈流。Facebook Connect中的流發佈

這應該通過我已經包含的JavaScript客戶端庫來完成。

我的網頁的代碼如下:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml" xml:lang="de" lang="de"> 
<head> 
[...] 
</head> 
<body> 
[...] 
<script src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php/de_DE" type="text/javascript"></script> 
<script type="text/javascript"> 
FB.init("XYZ", "xd_receiver.htm"); 
FB.Connect.ifUserConnected(set_cookies_and_refresh()); 
</script> 
[...] 
<script type="text/javascript"> 
var addedLinks = [{ "text": "Challenge XYZ now", "href": "http://example.org/page1.html" }]; 
FB.Connect.streamPublish("", null, addedLinks, null, "What do you want to add?"); 
</script> 
[...] 
</body> 
</html> 

流對話應該儘快在頁面加載打開。

怎麼了?你可以幫我嗎?非常感謝你!

回答