New! Check out Ionic Native. It's like ngCordova but for ES6 and TypeScript.

$cordovaInstagram

Cordova Plugin For opening images in the Instagram app.

cordova plugin add https://github.com/vstirbu/InstagramPlugin.git

Example

module.controller('ThisCtrl', function($scope, $cordovaInstagram) {
  // Get image from camera, base64 is good. See the
  // $cordovaCamera docs for more info

  $cordovaInstagram.share($scope.image.data, $scope.image.caption).then(function() {
    // Worked
  }, function(err) {
    // Didn't work
  });
})
share(imageData, imageCaption)

Share an image base64 encoded using a data-uri as imageData (can easily be fetched from the $cordovaCamera plugin). Specify an optional caption for the image using imageCaption

Param Type
imageData String
imageCaption String