ionic-team / ng-cordova

OBSOLETE: Please move to Ionic Native https://github.com/ionic-team/ionic-native
https://github.com/ionic-team/ionic-native
MIT License
3.48k stars 1.05k forks source link

How to share to instagram with SocialSharing? #1259

Open zh-wowtv opened 8 years ago

zh-wowtv commented 8 years ago

My code:

      $cordovaSocialSharing
        .canShareVia('instagram', image, description, null)
        .then(function(result) {
           alert('success');
        },function(err) {
           alert("Make sure your instagram is installed on your device and internet is available.")
        })
        .finally(function() {
          $ionicLoading.hide();
          $state.go('app.photo',{},{reload: true});
        })

Image is base64 image. It shows success. But nothing shared to instagram. What should I do beside installation of the plugin? It mentions that I should add add url scheme. So I add the following in my plist:

<key>LSApplicationQueriesSchemes</key>
<array>
    <string>instagram</string>
</array>

What's the next? I still can't share to instagram.

zh-wowtv commented 8 years ago

Anybody have experience using this plugin?