我有一个使用 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 安装
科尔多瓦插件添加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>
More...
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)