I'm trying to post an image with hashtag to facebook using react-native-fbsdk(0.4.0) like this:
ShareDialog.canShow(shareContent)
.then(canShow => {
if (canShow) {
return ShareDialog.show(shareContent);
} else {
return Promise.reject('error sharing');
}
})
.then(result => {
// evaluating result here
});
Share dialog appears normally and content is posted to FB when shareContent
has the following content:
shareContent = {
contentType: 'photo',
photos: [{
imageUrl: 'valid uri'
}]
};
When I add a hashtag, share dialog doesn't appear and result
is an empty object {}
:
shareContent = {
contentType: 'photo',
commonParameters: {
hashtag: '#SomeHashTag'
},
photos: [{
imageUrl: 'the same valid uri'
}]
};
Also if I try to add a hashtag to other types like link
share dialog works fine.
What I am doing wrong? :(