Instagram

Contents

Share a photo with the instagram app

https://github.com/vstirbu/InstagramPlugin

联系我们?

If you're building a serious project, you can't afford to spend hours troubleshooting. Ionic's experts offer official maintenance, support, and integration help.

Contact Us Today!

Ionic Instagram插件的安装(Installation)

ionic cordova plugin add cordova-instagram-plugin npm install @ionic-native/instagram
Ionic EE comes with fully supported and maintained plugins from the Ionic Team. Learn More or Contact Us
ionic enterprise register --key=YOURPRODUCTKEY npm install @ionic-enterprise/instagram

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

  • Android
  • iOS

Ionic Instagram插件的用法(Usage)

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

constructor(private instagram: Instagram) { }

...

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