@emish89/capacitor-instagram-sharer
v0.0.5
Published
instagram share on story capacitor plugin
Readme
instagram-sharer
Instagram share on stories capacitor plugin.
You can share your images as IG story with new Open Graph API that needs the Facebook App ID.
Install
npm install @emish89/capacitor-instagram-sharer
npx cap syncand put in the Info.plist file :
<key>LSApplicationQueriesSchemes</key>
<array>
<string>instagram</string>
<string>instagram-stories</string>
</array>and in the AndroidManifest.xml :
<queries>
<package android:name="com.instagram.android" />
</queries>Sample Usage
await InstagramSharer.shareToStory({
imageBase64: base64String,
appId: facebookAppId(),
});API
shareToStory(...)
shareToStory(options: { imageBase64: string; appId: string; }) => Promise<void>| Param | Type |
| ------------- | ---------------------------------------------------- |
| options | { imageBase64: string; appId: string; } |
