繁体   English   中英

将社交共享链接添加到phonegap应用

[英]adding social share links to phonegap app

我有一个使用jquery mobile的应用程序,它可以输出图像。

现在,我已在预览页面中显示了图像,并在下面添加了链接以在Facebook和Twitter和其他平台上共享它们

我该如何编码...

当用户单击“共享”按钮时,默认共享面板应像这样弹出

https://cdn.tutsplus.com/mobile/uploads/legacy/Android-SDK_Share-Activity/android_share_chooser.png

当用户选择例如twitter时,twitter应用程序将打开,并且应该附加图像。

我应如何在社交网站的api或android api或phonegap api中查找

适用于Android,iOS和Window的PhoneGap社交共享插件

使用CLI安装

cordova插件添加https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin.git

在页面中添加

<button onclick="window.plugins.socialsharing.share('Message, image and link', null, 'https://www.google.nl/images/srpr/logo4w.png', 'http://www.x-services.nl')">message, image and link</button>
<button onclick="window.plugins.socialsharing.share('Message, subject, image and link', 'The subject', 'https://www.google.nl/images/srpr/logo4w.png', 'http://www.x-services.nl')">message, subject, image and link</button>

更多...

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM