Open fransyozef opened 8 years ago
I'm no Instagram user, but can you share text-only? Perhaps try also adding an image like so and see if it makes a difference:
$cordovaSocialSharing
.canShareVia(socialType, message, image, link)
.then(function(result) {
// Success!
}, function(err) {
// An error occurred. Show a message to the user
});
I'm also seeing this problem, however as a workaround - you just run the shareVia
- and it typically fails if they don't have the app.
What @gregavola describes can happen on iOS in case you didn't whitelist the instagram
URL scheme in the .plist
but I can't really explain why this behaves as you describe on Android :question:
@EddyVerbruggen I was getting same error and It was solved by using your code. But my image is not posted in Instagram. Values I used are below. socialType ="instagram", message="test", image="byte code of image here", link ="link of sample image"
$cordovaSocialSharing .canShareVia("instagram", "#notreallystrangers", $rootScope.imagecode,"https://www.google.nl/images/srpr/logo4w.png")
Can you please help me?
Initially I also had this issue but solved it by calling canShareVia
with an image URL. Using canShareVia('instagram')
will not work, you need to use canShareVia('instagram', null, null, '/path/to/image')
.
The reason is that instagram only registers itself as a share intent on Android if you are trying to share an image. If you go to a web page in Chrome for Android and use the share button, you'll see that Instagram isn't listed, this is because Instagram doesn't register as a share handler for a link, only for images.
Hi I'm using ngCordova with Ionic, but I've also tested the code with the normal window.plugin
So I have this
On my iphone I have Instagram installed and I get "good".
On my android device I've also installed Instagram, but I get "no good". Also .. err has the following contents
["com.android.mms", "com.samsung.android.app.memo", "com.google.android.talk", "com.google.android.apps.docs", "com.samsung.android.app.FileShareClient", "com.android.bluetooth", "com.android.email", "com.google.android.gm", "com.google.android.apps.docs", "com.facebook.katana", "com.facebook.orca"]
As you can see .. no Instagram in the list, but I do have it installed on my device.
Some Ionic info :
and the social sharing plugin
cordova-plugin-x-socialsharing 5.0.10 "SocialSharing"
Any help on this?