简体   繁体   English

Facebook分享ui-分享群组

[英]facebook share ui - share in a group

I want to share a link with FB.ui so I will get callbacks for success/ fail but the FB.ui does not allow to choose where to share (" on your won timeline ", " in a group "....) like the old sharer.php did 我想与FB.ui共享一个链接,所以我将获得成功/失败的回调,但是FB.ui不允许选择共享的位置(“ 在您获胜的时间轴上 ”,“ 组中 ”。就像旧的sharer.php一样

See screenshot- 看截图-

在此处输入图片说明 My code renders this popup: 我的代码呈现此弹出窗口:

在此处输入图片说明

Is there a way to make the new fb.ui popup to allow to share "in a group" like the old one did? 有没有办法使新的fb.ui弹出窗口像旧共享窗口那样允许“成组共享”?

This is my code: 这是我的代码:

FB.ui(
      {
        method: 'feed',
        name: 'some name',
        link: 'http://some url',
        picture: 'http://some image',
        caption: "some text",
        description: "some description"
      },
      function(response) {
        if (response && response.post_id) {
          console.log('Post was published.');
        } else {
          console.log('Post was not published.');
        }
      }
);

The Share Dialog and Feed Dialog have this limitation unfortunately! 不幸的是, 共享对话框提要对话框有此限制!

Both dialogs are primarily meant to post/share on your timeline only. 这两个对话框主要用于仅在您的时间轴上发布/共享。 Feed Dialog do have to parameter with it but it can only be the ID of the profile that the story will be published to; Feed Dialog确实需要to参数,但它只能是故事将发布到的配置文件的ID; and this ID must be a friend who also uses your app. 并且该ID必须是也使用您的应用程序的朋友。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM