How to share Both custom image and link in Facebook Using SocialSharing in ionic2?
pls, help me .
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
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?