ionic framework - Cordova sharing plugin does not share mesage on facebook. -
i'm using cordova share plugin share on facebook profile. need share link, message , image. willing share message , can never it. nothing appears. works me twitter , whatsapp not facebook. why?
var text="any text"; var image_gif="" //image gif of cellphone var link="https://play.google.com/store/apps/details?id=com.facebook.katana" $cordovasocialsharing.shareviafacebook(text, image_gif,link).then(function(result) { // success! }, function(err) { alert("problem") });
i using android device
this limitation of plugin. read plugins documentation.
facebook android: sharing message not possible. can share either link or image (not both), description can not prefilled. see facebook issue won't solve. alternative can use shareviafacebookwithpastemessagehint since plugin version 4.3.4. see below details. note sharing url on non standard domain (like .fail) may not work on android. make sure test this. can use link shortener workaround issue.
facebook ios: message, image (other filetypes not supported), link. beware since fb update in april 2015 sharing prefilled message no longer possible when fb app installed (like android), see #344. alternative: use shareviafacebookwithpastemessagehint.
Comments
Post a Comment