In our React Native app, we\'re trying to have our users share specific images straight to either feed or story depending on a selection within our view/component.
When
This is probably happening because the activity with the action com.instagram.share.ADD_TO_STORY
has android:enabled="false"
in Instagram manifest. The com.instagram.share.ADD_TO_FEED
action activity does not have this.
You can see that sharing to the Story is also not available if you try to share an image from the gallery.
The solution is simple: you need to restart Instagram after you have logged in. Then it will become available. This is probably an Instagram precaution against showing multiple Instagram actions in app chooser if user actually does not use Instagram.
Now this becomes quite funny:
our other test devices all have that error pop up
..it happens because when you try it on another device, you just install Instagram, log into your testing account and start trying .. and it never works because you first need to restart the Instagram app! :)
For us it was the "type", it seems "image/*" isn't allowed.
Using "video/mp4" worked!