Closed 1nfinite closed 4 years ago
@1nfinite Did you get any solution?
@muhzi4u No. Do you have any suggestion?
Yes.I just changed the implementation .First I will list all the possible options [Facebook, Whatsapp, etc] in a custom modal . Whenever we click on any option,
For Ex: Facebook ,then the following code will execute.
$cordovaSocialSharing
.shareViaFacebookWithPasteMessageHint(message, null, webUrl)
.then(function(success) {
console.log('shareViaFacebook Success', success);
}, function(err) {
console.log('shareViaFacebook failed', err);
});
Whatsapp ,then the following code will execute.
$cordovaSocialSharing
.shareViaWhatsApp(message, imagePath, webUrl)
.then(function(success) {
console.log('shareViaWhatsApp Success', success);
}, function(err) {
console.log('shareViaWhatsApp failed', err);
});
So different code will execute based on the option.If you have any doubt.Please let me know.Thanks
@muhzi4u Thanks. But i am actually looking for a solution with shareWithOptions
, something like
var options = {
priority: 'link'
};
PR here to resolve this https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin/pull/1092
I am using the shareWithOptions with options as follow. By default, when there is image file and url, facebook share will use image instead of url. Is there any way to configure to give priority to url instead?