Instagram

Contents

Share a photo with the instagram app

https://github.com/vstirbu/InstagramPlugin

Ionic Instagram插件的安装(Installation)

ionic cordova plugin add cordova-instagram-plugin npm install @ionic-native/instagram

Ionic Instagram插件支持的平台(Supported Platforms)

  • Android
  • iOS

Ionic Instagram插件的用法(Usage)

import { Instagram } from '@ionic-native/instagram';

constructor(private instagram: Instagram) { }

...

this.instagram.share('data:image/png;uhduhf3hfif33', 'Caption')
  .then(() => console.log('Shared!'))
  .catch((error: any) => console.error(error));