Skip to content
This repository has been archived by the owner on Mar 9, 2024. It is now read-only.

Video Share on Instagram Story #37

Open
Russel1 opened this issue Nov 29, 2018 · 11 comments
Open

Video Share on Instagram Story #37

Russel1 opened this issue Nov 29, 2018 · 11 comments

Comments

@Russel1
Copy link

Russel1 commented Nov 29, 2018

Hi,

I would like to share a video directly to the Instagram story without having to choose between "Feed" and "Story". Do you have a solution for me?

I've tried this before, but unfortunately it doesn't work:

new NativeShare().AddFile(filePath, "video/mp4").SetSubject("Subject goes here").SetText("Hello world!").SetTarget("com.instagram.android", com.instagram.share.handleractivity.CustomStoryShareHandlerActivity).Share();

Here you can find documentation about the Instagram Story Share:
https://developers.facebook.com/docs/instagram/sharing-to-stories/

Thanks for help.

@yasirkula
Copy link
Owner

If either SetTarget("com.instagram.android", "com.instagram.share.ADD_TO_STORY") or SetTarget("com.instagram.share", "com.instagram.share.ADD_TO_STORY") doesn't work (even after removing the SetSubject and SetText functions), then I'm not sure how this can be achieved.

Also a related issue: #35

@Russel1
Copy link
Author

Russel1 commented Nov 30, 2018

Unfortunately, it doesn't work :(.

@Grayfox2017
Copy link

Hi,
I tried to share video under iOS but it doesn't work for me. Sharing screenshots is working well but not for videos.
I'd like to know if there is a way to add a variable for the path file.

Thanks for the help.

@yasirkula
Copy link
Owner

Does File.Exists(videoPath) return true? Are there any error messages in the Xcode console?

P.S. If this is not related to Instagram Story, please open a new issue or send me a mail at yasirkula@gmail.com

@hippogamesunity
Copy link

hippogamesunity commented Dec 27, 2020

Hi! I can also confirm that sharing videos to Instagram or WhatsApp doesn't work on iOS. I don't use SetTarget, just a simple share call.

@yasirkula
Copy link
Owner

What if you omit the text and subject?

@hippogamesunity
Copy link

I'll try. BTW if I save MP4 to Files and then select it and press SHARE to Instagram, I'm getting the same error "Something went wrong". This may be related Instagram app.

@ti-hardikshah
Copy link

Is there any way to add HashTag with Image and share on Instagram?
Video sharing issue resolved?

@yasirkula
Copy link
Owner

@hippogamesunity

@hippogamesunity
Copy link

Hi, this doesn't work. Even if I'm saving mp4 to Files than trying to share it from Files app, there is the same error. On the other hand, Instagram by itself can only pick videos from Photos, so I can't pick my file. I'll reply if I find something useful.

@hippogamesunity
Copy link

Btw I'm using FFMPEG to encode mp4.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants