我如何获得“重新分享”?显示在我的应用程序的dialog.feed帖子中的选项

发布于 2024-12-04 19:20:34 字数 166 浏览 0 评论 0原文

我有一个具有HTML锚标签的FB应用对话/feed ...

工作正常。

但是,当该帖子出现在提要中时,它只有一个“评论”和一个“类似”选项。

但是,我在提要中看到了其他一些帖子,这些帖子也具有“重新毛”选项。

我怎么得到?

谢谢, 香农

I have a fb app that has an html anchor tag which uses href = http://www.facebook.com/dialog/feed...

it works fine.

but when the post shows up in the feed, it only has a 'comment' and a 'like' option beneath it.

however, I see some other posts in my feed that also have a 'reshare' option.

how do I get that?

thanks,
Shannon

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

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

发布评论

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

评论(1

左岸枫 2024-12-11 19:20:34

我也有类似的问题;用户可以将照片发布到自己的(或其他人的墙壁)上,但帖子中只有类似和评论选项。

    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>');

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

I am having a similar problem; the user can post the photo to their own (or someone else's wall) but only the like and comment options appear with the post.

    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);
    }

The option to post comes up just fine

But once posted, no share option exists
(screenshots were filtered out by my newness to this site)

I have spend quite a while pouring through the facebook documentation but I can't see a solution.

To make this more fun, when using the URL method, I was getting a share option, but the photo would be lost. but after all my experiments with the FB.ui rolling back to the URL approach will not share.

    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>');

Any direction or ideas would be most welcome.

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