[英]Phonegap/Cordova Social sharing js shareViaFacebook not working in window phone
我已經使用SocialSharing.js插件在我的phonegap應用程序( Window Phone )中共享鏈接。 有些功能可以工作,有些則不能。 我無法直接在Facebook上共享鏈接。 示例如下:
工作:
<button onclick="window.plugins.socialsharing.share(null, null, null, 'http://www.x-services.nl')">link only</button>
不起作用:
<button onclick="window.plugins.socialsharing.shareViaFacebook('Message via Facebook', null /* img */, null /* url */, function() {console.log('share ok')}, function(errormsg){alert(errormsg)})">Direct Fb link</button>
//when click on 'Direct Fb lin' button, it show error message i.e, Invalid action.
發生這種情況的原因是,此插件在Windows Phone平台上不支持shareViaFacebook方法。
WP8上的可用方法為:可用,canShareViaEmail,共享,shareViaEmail和shareViaSMS。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.