Cordova 共享插件不在 facebook 上共享消息。

Cordova sharing plugin does not share mesage on facebook.

我正在使用 cordova 共享插件在我的 facebook 个人资料上分享一些东西。我需要分享 link,其中包含一条消息和一张图片。但现在我愿意分享一个信息,但我永远做不到。什么都没有出现。这对我适用于 twitter 和 whatsapp 但不适用于 facebook。为什么?

var text="any text";
var image_gif="" //image gif of my 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")
 });

我正在使用 android 设备

这是插件的限制。阅读 plugins documentation.

Facebook Android: sharing a message is not possible. You can share either a link or an image (not both), but a description can not be prefilled. See this Facebook issue which they won't solve. As an alternative you can use shareViaFacebookWithPasteMessageHint since plugin version 4.3.4. See below for details. Also note that sharing a URL on a non standard domain (like .fail) may not work on Android. Make sure you test this. You can use a link shortener to workaround this issue.

Facebook iOS: message, image (other filetypes are not supported), link. Beware that since a Fb update in April 2015 sharing a prefilled message is no longer possible when the Fb app is installed (like Android), see #344. Alternative: use shareViaFacebookWithPasteMessageHint.