在React Native FBSDK中更改共享对话框格式

时间:2017-01-24 10:36:58

标签: facebook react-native react-native-fbsdk

如何更改Facebook的ShareDialog格式: image to the left and text to the right

(左侧图像和右侧文本)格式为:

image on top, text bottom and CTA button

(图像在顶部,文字底部和CTA按钮)?

我希望有一个横幅图像,而不是像上图中的方形缩略图。那种帖子还有其他名称吗?

我正在使用React Native FBSDK中的ShareDialog:

ShareDialog.canShow(shareLinkContent).then(
  function(canShow) {
    if (canShow) {
      return ShareDialog.show( shareLinkContent );
    }
  }
).then(
  function(result) {
    if (! result.isCancelled && undefined !== result.postId) {
       alert('Share operation was cancelled');
     } else {
       alert('Share was successful with postId: ' + result.postId);
     }
  },
  function(error) {
    alert('Error: ' + error);
  }
);

0 个答案:

没有答案