I am trying to send an image using hashtag to facebook using response-native-fbsdk (0.4.0) as follows:
ShareDialog.canShow(shareContent)
.then(canShow => {
if (canShow) {
return ShareDialog.show(shareContent);
} else {
return Promise.reject('error sharing');
}
})
.then(result => {
});
The sharing dialog is usually displayed, and the content is sent to the FB when it shareContenthas the following content:
shareContent = {
contentType: 'photo',
photos: [{
imageUrl: 'valid uri'
}]
};
When I add a hashtag, the general dialog does not appear, but resultis 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, for example, the linksharing dialog works fine.
What am I doing wrong?: (
source
share