Facebook 如何获得';重新分享';在我的应用程序中显示的选项';s dialog.feed post

Facebook 如何获得';重新分享';在我的应用程序中显示的选项';s dialog.feed post,facebook,dialog,feed,share,Facebook,Dialog,Feed,Share,我有一个fb应用程序,它有一个html锚标记,使用href= 它很好用 但是当文章出现在提要中时,它下面只有一个“评论”和一个“喜欢”选项 然而,我在我的订阅源中看到一些其他帖子也有“重新共享”选项 我怎么知道 谢谢, 香农我也有类似的问题;用户可以将照片张贴到自己的墙上(或其他人的墙上),但帖子中只显示“喜欢”和“评论”选项 FB.init({appId: "xxxxxxxxxxx", status: true, cookie: true}); function fbShar

我有一个fb应用程序,它有一个html锚标记,使用href=

它很好用

但是当文章出现在提要中时,它下面只有一个“评论”和一个“喜欢”选项

然而,我在我的订阅源中看到一些其他帖子也有“重新共享”选项

我怎么知道

谢谢,
香农

我也有类似的问题;用户可以将照片张贴到自己的墙上(或其他人的墙上),但帖子中只显示“喜欢”和“评论”选项

    FB.init({appId: "xxxxxxxxxxx", status: true, cookie: true});

    function fbShare(pic) {
        event.preventDefault();
         //call the API
         var obj = {
            method: 'feed',
            link: 'http://localhost/users/#/gingles/1680/',
            picture: 'http://c711249.r49.cf2.rackcdn.com/thumbs/1680_19.png',
            name: 'gingle social transparancy',
            caption: __video.title,
            redirect_uri: 'http://www.gingle.tv/close-page',
            description: 'Watch this video on gingle.tv',
        };

        function callback(response) {
         console.log(response);
       }

       FB.ui(obj, callback);
    }
发布的选项很好

但一旦公布,就不存在股票期权 (截图被我的新网站过滤掉了)

我花了相当长的时间浏览facebook文档,但我看不到解决方案

为了让这更有趣,当使用URL方法时,我得到了一个股票期权,但是照片会丢失。但是,在我用FB.ui进行了所有的实验之后,回滚到URL的方法将无法共享

    var fbUrl = 'https://www.facebook.com/dialog/feed?app_id=xxxxxxxxxxx&' +
        'link=http://' + encodeURIComponent(window.location.host + '/users/#/' + __video.username + '/' + __video.id) + '&picture=' + $(this).find('img').attr('src') +
        '&name=gingle%20|%20social%20transparency&' + 'caption=' + __video.title +  
        '&description=Watch%20this%20ideo%20on%20gingle.tv&' +  
        'redirect_uri=http://www.gingle.tv/close-page';

    $('#screenshot_social').html('<a href="' + fbUrl + '" target=_blank>Share on Facebook</a>');
var fbUrl='1〕https://www.facebook.com/dialog/feed?app_id=xxxxxxxxxxx&' +
'link=http://'+encodeURIComponent(window.location.host++'/users/#/'+\uu video.username++'/'+\uu video.id)+'&picture='+$(this.find('img').attr('src'))+
“&name=gingle%20 |%20社会性%20透明度&“+”标题=“+”视频.title+
'&description=Watch%20this%20ideo%20on%20gingle.tv&'+
'重定向(u uri)=http://www.gingle.tv/close-page';
$('#屏幕截图_social').html('');

任何方向或想法都是最受欢迎的。

从技术上讲,这是另一个问题,试图在原有的基础上提供更多细节。向任何希望得到答案的阅读者致歉。如果有什么不同,myapp是一款非画布应用程序。与此同时,我确实找到了一个解决办法,尽管它很笨重:使用我的URL发布方法作为链接进行操作。不过,重定向uri使这有点混乱。