我应该使用哪个facebook javascript api来邀请并发布到墙?

我应该使用哪个facebook javascript api来邀请并发布到墙?,javascript,facebook,Javascript,Facebook,我想发布到我的墙上,并以时尚的方式向朋友发送邀请。 看来stream.publish现在已经不受欢迎了 任何其他方法都可以做到这一点。。 如果我能提供一些示例代码,我将不胜感激。您可以使用: 我的提要对话框页面 .publish\u stream使您的应用程序能够将内容、评论和喜好发布到用户的流和用户朋友的流中。有了此权限,您可以随时将内容发布到用户提要,而无需脱机访问。但是,请注意,Facebook推荐用户发起的共享模式。 <html xmlns="http://www.w3.org/

我想发布到我的墙上,并以时尚的方式向朋友发送邀请。 看来stream.publish现在已经不受欢迎了

任何其他方法都可以做到这一点。。 如果我能提供一些示例代码,我将不胜感激。

您可以使用:


我的提要对话框页面

.

publish\u stream
使您的应用程序能够将内容、评论和喜好发布到用户的流和用户朋友的流中。有了此权限,您可以随时将内容发布到用户提要,而无需脱机访问。但是,请注意,Facebook推荐用户发起的共享模式。
<html xmlns="http://www.w3.org/1999/xhtml"
  xmlns:fb="https://www.facebook.com/2008/fbml">
  <head>
    <title>My Feed Dialog Page</title>
  </head>
  <body>
    <div id='fb-root'></div>
    <script src='http://connect.facebook.net/en_US/all.js'></script>
    <p><a onclick='postToFeed(); return false;'>Post to Feed</a></p>
    <p id='msg'></p>

    <script> 
      FB.init({appId: "YOUR_APP_ID", status: true, cookie: true});

      function postToFeed() {

        // calling the API ...
        var obj = {
          method: 'feed',
          link: 'https://developers.facebook.com/docs/reference/dialogs/',
          picture: 'http://fbrell.com/f8.jpg',
          name: 'Facebook Dialogs',
          caption: 'Reference Documentation',
          description: 'Using Dialogs to interact with users.'
        };

        function callback(response) {
          document.getElementById('msg').innerHTML = "Post ID: " + response['post_id'];
        }

        FB.ui(obj, callback);
      }

    </script>
  </body>
</html>