SocialSharing


#1

How to share Both custom image and link in Facebook Using SocialSharing in ionic2?
pls, help me .


#2

Share text, files, images, and links via social networks, sms, and email. These methods can text a message , a file and a url as arguments


#3

Thanks, but i used shareViaFacebook(message, image, url)
like that =>

public message : string = ‘Exampless with free calls and messages’;
public title : string = ‘Examples’;
public image : string= ‘http://masteringionic2.com/perch/resources/mastering-ionic-2-cover-1-w320.png’;
public uri : string|= ‘http://masteringionic2.com/products/product-detail/s/mastering-ionic-2-e-book’;

this.socialSharing.shareViaFacebook(this.message, this.image, this.uri)
.then((data) =>
{
console.log(‘Shared via Facebook’);
this.presentToast(“Shared via Facebook!”)
})
.catch((err) =>
{
console.log(‘Was not shared via Facebook’);
this.presentToast(“Was not shared via Facebook!”)
});

…end…
i insert both image and link, but show only image in facebook . what wrong?