react-native – 使用hashtag将React Native Post图像发送到face
发布时间:2020-12-15 20:30:05 所属栏目:百科 来源:网络整理
导读:我正在尝试使用react-native-fbsdk(0.4.0)将带有hashtag的图像发布到facebook: ShareDialog.canShow(shareContent) .then(canShow = { if (canShow) { return ShareDialog.show(shareContent); } else { return Promise.reject('error sharing'); } }) .the
我正在尝试使用react-native-fbsdk(0.4.0)将带有hashtag的图像发布到facebook:
ShareDialog.canShow(shareContent) .then(canShow => { if (canShow) { return ShareDialog.show(shareContent); } else { return Promise.reject('error sharing'); } }) .then(result => { // evaluating result here }); 当shareContent具有以下内容时,正常显示“共享”对话框并将内容发布到FB: shareContent = { contentType: 'photo',photos: [{ imageUrl: 'valid uri' }] }; 当我添加主题标签时,不会出现共享对话框,结果是一个空对象{}: shareContent = { contentType: 'photo',commonParameters: { hashtag: '#SomeHashTag' },photos: [{ imageUrl: 'the same valid uri' }] }; 此外,如果我尝试将链接标签添加到其他类型,如链接共享对话框工作正常. 我做错了什么? (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |