Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sharing to Instagram Stories #256

Open
schwa23 opened this issue Jul 10, 2024 · 4 comments
Open

Sharing to Instagram Stories #256

schwa23 opened this issue Jul 10, 2024 · 4 comments

Comments

@schwa23
Copy link

schwa23 commented Jul 10, 2024

Description

Instagram has a fairly simple sharing interface that uses a custom url scheme and a special pasteboard type. Sharing directly to instagram via shortcuts would entail placing content on the pasteboard as com.instagram.sharedSticker.backgroundImage and opening a URL instagram-stories://share?source_application=%@

Documentation is here

@sindresorhus
Copy link
Owner

From the linked page:

Beginning in January 2023, you must provide a Facebook AppID to share content to Instagram Stories. For more information, see Introducing an important update to Instagram Sharing to Stories. If you don't provide an AppID, your users see the error message "The app you shared from doesn't currently support sharing to Stories" when they attempt to share their content to Instagram.

@sindresorhus
Copy link
Owner

sindresorhus commented Jul 10, 2024

Not sure I will bother with applying for an AppID. However, what I could do is to make an action that allows setting custom pasteboard types.

@jdickens23
Copy link

Yeah that would work too! FWIW, I was able to put an arbitrary app id and it still worked so not sure how stringently they check that. But a generic 'advanced clipboard' action would be great :)

@sindresorhus
Copy link
Owner

I started implementing this, but it turns out only things in the foreground can put something on the clipboard on iOS, which means a shortcut action cannot unless it opens the Actions app, which is sub-optimal. However, I discovered a better solution. You can use the Set Uniform Type Identifier action to set the desired type on the content and then pass it to the built-in Copy to Clipboard action. Can you try that out? You need the latest TestFlight build for that: https://testflight.apple.com/join/fJGUrsZx

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

No branches or pull requests

3 participants