Respond to Facebook hashtag original message

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 => {
   // evaluating result here
 });

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?: (

+4
source share

Source: https://habr.com/ru/post/1663685/


All Articles