Share images with social plugin

Hi,

I have a problem with the social plugin for android in my app. I need to share an image but it don’t work. I copied the example in github (https://github.com/coronalabs/plugins-sample-native-popup-social/blob/master/main.lua) but still not work.

This is my code:
 

local options = { service = "share", message = "Message to show", listener = listAndroid, image = { filename = "copia.png", baseDir=system.TemporaryDirectory }, url = "www.MySite.html" } native.showPopup("social", options)

When i try on my phone i share on Whatsapp or Twitter, share me the message and the url but not the image…

what I’m doing wrong?

Regards,

Girolamo

No help?

Are you certain there is an image in that directory? How are you saving it? If you could post that code it would give us a bit more to go on.

I’m able to share local images on Android with the social plugin, so to be blunt, it’s almost certainly a problem with your code…

No help?

Are you certain there is an image in that directory? How are you saving it? If you could post that code it would give us a bit more to go on.

I’m able to share local images on Android with the social plugin, so to be blunt, it’s almost certainly a problem with your code…