Share image to instagram

I’m trying to open the instagram app with an image.

I have installed ngCordova, included the JS in my index.html and included the plugin in my app : ngCordova.plugins.instagram

In my controller I added $cordovaInstagram

And now I’m trying to call it

        try {
            $cordovaInstagram.share(myBase64Image, "test").then(function() {
                var alertPopup = $ionicPopup.alert({
                  title: 'Instagram',
                  template: 'and now?'
                }); 
            }, function(err) {
                var alertPopup = $ionicPopup.alert({
                  title: 'Instagram',
                  template: 'Error'
                });  
            });                
        } catch (e) {
            var alertPopup = $ionicPopup.alert({
              title: 'Instagram',
              template: 'Is not installed'
            });                  
        }

When I run this in ionic view , I get the popup with “and now?” … but nothing happened.

What am I doing wrong?

Oh I found smething on github (https://github.com/driftyco/ng-cordova/issues/772)

so I’ve altered my code to

$cordovaInstagram.share({ image : myBase64Image , caption : “test” } ).then(function() {

but still not working

Or is the instagram function nog working in Ionic View?

were you able to find a solution? I’m trying the same thing, but I get the “No Media” panel on Instagram.