yasirkula / UnityNativeShare

A Unity plugin to natively share files (images, videos, documents, etc.) and/or plain text on Android & iOS
MIT License
891 stars 131 forks source link

Share directly on Instagram Feed #35

Closed ziad10a closed 4 years ago

ziad10a commented 5 years ago

Hey,

Thanks for the great open-source plugin, it works just fine. I have this requirement where I need to share an image or a video directly unto the instagram feed. Choosing a targer "Instagram" works fine but I get the choice to pick between "Feed or Stories" but I need to post directly into the Feed.

Anyway I can pass a custom string to make that happen ?

yasirkula commented 5 years ago

Unfortunately not. NativeShare just presents the shared content to the shared application, the rest is up to that application.

ziad10a commented 5 years ago

You do run through the activities in the app, if it's more than one you give the choice, I think I can hard-code choosing the first option.

I'll try it out, but again thanks

yasirkula commented 5 years ago

Hmm, if you can find the full name of the Feed share activity, and if it is consistent across different versions of the Instagram app, you may be able to use the SetTarget function.

ziad10a commented 5 years ago

I'll try and see if I can return the full string or index.

Russel1 commented 5 years ago

@ziad10a Did you manage to share directly to Instagram Feed? I'm looking for a way to directly share a video to story. https://developers.facebook.com/docs/instagram/sharing-to-stories/

ziad10a commented 5 years ago

@ziad10a Did you manage to share directly to Instagram Feed? I'm looking for a way to directly share a video to story. https://developers.facebook.com/docs/instagram/sharing-to-stories/

Hey Russel I started to work with it but I got busy with work and other things so, to answer your question is haven't fully finished it.

When I do it I'll post it in here

Russel1 commented 5 years ago

@ziad10a thank you.