如何使用 FBJS 提示用户在 facebook 中发布 feed?

发布于 2024-07-30 12:21:43 字数 454 浏览 4 评论 0原文

尝试了如下所示的操作,并且发生了第 n 次 -

<script src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php" type="text/javascript"></script>
<script type="text/javascript">   
   FB_RequireFeatures(["XFBML"], function(){ 
       FB.Facebook.init("<?=$apiKey?>", "channel/xd_receiver.htm"); 
       var api = FB.Facebook.apiClient;
       Facebook.streamPublish();    
   }); 
</script> 

Tried sth like below and nth happens-

<script src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php" type="text/javascript"></script>
<script type="text/javascript">   
   FB_RequireFeatures(["XFBML"], function(){ 
       FB.Facebook.init("<?=$apiKey?>", "channel/xd_receiver.htm"); 
       var api = FB.Facebook.apiClient;
       Facebook.streamPublish();    
   }); 
</script> 

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

总以为 2024-08-06 12:21:44
Facebook.streamPublish();

可以输入字符串作为参数。 该字符串是用户在发布时为帖子输入的消息。

但还有其他几个参数可以输入,我建议阅读更多这里

Facebook.streamPublish();

String can be inputed as parameters. The string being the message the user enters for the post at the time of publication.

But there are also several other parameters that can be inputed, I would suggest reading more here.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文