Hi Guys
im testing the social sharing part of the application using this plugin to share via facebook
the share button does open the facebook app but for some reason it doesnt pass the image or the link variables
the message variable is working
here is my code
var message =“See test Ecosystem in”;
var image =‘img/new/logo-home-s.png’;
var link = ‘http://test.com’;
$cordovaSocialSharing
.shareViaFacebookWithPasteMessageHint(message,image,link,'Message pasted to clip board ,press on the area to paste it in the feed')
.then(function(result) {
console.log(result);
var alertPopup = $ionicPopup.alert({
title: 'Thanks for sharing via facebook'
});
alertPopup.then(function(res) {
});
}, function(err) {
console.log(err);
var alertPopup = $ionicPopup.alert({
title: 'Could not post to Facebook',
template : 'Do you have the app installed?'
});
alertPopup.then(function(res) {
});
});
i changed the image to an url and nothing…
is there another solution
i need that when the user click share it will at least share the logo image and url…
$cordovaSocialSharing
.shareViaFacebookWithPasteMessageHint(message,image,null,'Message pasted to clip board ,press on the area to paste it in the feed')
You must use the Facebook method that copies the message to the clipboard. I’m pretty sure that Instagram now works the same way. There were apps abusing the pre-filled messages. That’s why we can’t have nice things