我有一个使用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>
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。