mozhn / cordova-plugin-instagram-stories

This is a simple plugin that allows to share content to Instagram Stories using Facebook's API Documentation via Cordova

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Instagram Stories Sharing for Cordova

This is a simple plugin that allows to share content to Instagram Stories using Facebook's API Documentation: https://developers.facebook.com/docs/instagram/sharing-to-stories/

Installation

cordova plugin add https://github.com/gregavola/cordova-plugin-instagram-stories

Usage

IGStory.shareToStory(
    opts,
    success => {
      console.log(success);
    },
    err => {
      console.error(err);
    }
  );

Options

optionKey Type Description
backgroundImage string (Optional) Fully Qualified URL (not a file:// url, must be a remote url) to be background Image
stickerImage string (Optional) Fully Qualified URL (not a file:// url, must be a remote url) to be the sticker Image
attributionURL string (Optional) A link back to the app when a user clicks it (this is a beta feature and requires approval from Facebook
backgroundTopColor string (Optional) A hex color to be used when you don't pass a backgroundImage. If you pass both, backgroundImage is used and this is disregarded
backgroundBottomColor string (Optional) A hex color to be used when you don't pass a backgroundImage. If you pass both, backgroundImage is used and this is disregarded

About

This is a simple plugin that allows to share content to Instagram Stories using Facebook's API Documentation via Cordova

License:Other


Languages

Language:Java 49.3%Language:Objective-C 48.5%Language:JavaScript 2.3%