多个图像不与社交共享插件共享Cordova/Phonegap

问题描述:

我正在开发phonegap应用程序并使用社交共享插件Cordova/Phonegap在Facebook上共享帖子和图像。但是,当我试图分享多个图像不工作,并给出错误。多个图像不与社交共享插件共享Cordova/Phonegap

我传递多幅图像,如下阵列,

['image1','image2'] 

请帮我在这。

+0

哪个版本的插件是你usi NG?你能分享你正在使用的确切线路吗? – 2014-09-12 13:52:35

+0

我已经从下面的URl下载,https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin和我的代码:window.plugins.socialsharing.shareViaFacebook('message',null,['image1','image2' ]); – 2014-09-12 14:02:21

引用文档from the plugin github page:你做了以下

// sharing multiple images via Facebook (you can mix protocols and file locations) 
window.plugins.socialsharing.shareViaFacebook(
    'Optional message, may be ignored by Facebook app', 
    ['https://www.google.nl/images/srpr/logo4w.png','www/image.gif'], 
    null); 

在这里,您表示(在评论):

window.plugins.socialsharing.shareViaFacebook('message', null,['image1','image2']); 

我觉得你做你的参数的顺序是错误的:它应该是消息,然后图像数组然后为空:

window.plugins.socialsharing.shareViaFacebook('message', ['image1','image2'], null);