简体   繁体   English

使用带有链接的 Cordova SocialSharing 插件将图片分享到 Facebook

[英]Share image to Facebook using Cordova SocialSharing plugin with link attached

I'm using SocialSharing Plugin for cordova, to allow my Android App to share an image directly to user's news feed.我正在使用用于cordova 的SocialSharing 插件,以允许我的Android 应用程序直接将图像共享到用户的新闻提要。

I have read all the documentation and found no way to make it share like this app does.我已经阅读了所有文档,但发现没有办法让它像这个应用程序那样共享。 I don´t know what language they used to build it, but the share dialog looks exactly the same, except that the published image to the user's news feed has a small link on top of it.我不知道他们用什么语言来构建它,但共享对话框看起来完全一样,只是发布到用户新闻提要的图像上面有一个小链接。

Is there any plugin for Cordova, that allow sharing this way to Facebook? Cordova 是否有任何插件允许以这种方式分享到 Facebook?

Thank you very much.非常感谢。

这就是应用程序共享的方式。它在顶部添加了一个小链接

I'm the maintainer of cordova-plugin-facebook-connect.我是cordova-plugin-facebook-connect 的维护者。 The option to include photos in a share dialog will be added in the next release:在下一个版本中将添加在共享对话框中包含照片的选项:

https://github.com/cordova-plugin-facebook-connect/cordova-plugin-facebook-connect/issues/54 https://github.com/cordova-plugin-facebook-connect/cordova-plugin-facebook-connect/issues/54

I'm currently investigating this too as the Social Sharing plugin doesn't link to your own Facebook App as far as I can tell.我目前也在对此进行调查,因为据我所知,社交共享插件没有链接到您自己的 Facebook 应用程序。

I haven't tried it yet, but it appears that this plugin is what we need, and I'm hoping to investigate further in the next few weeks:我还没有尝试过,但看来这个插件正是我们所需要的,我希望在接下来的几周内进一步调查:

https://github.com/cordova-plugin-facebook-connect/cordova-plugin-facebook-connect https://github.com/cordova-plugin-facebook-connect/cordova-plugin-facebook-connect

This SO thread also seems relevant and references the old version of the Facebook plugin that the one linked above was forked from:这个 SO 线程似乎也很相关,并引用了旧版本的 Facebook 插件,上面链接的那个插件是从它派生出来的:

Facebook Cordova plugin - sharing a photo (with no link) results in empty Share Dialog Facebook Cordova 插件 - 共享照片(没有链接)导致空的共享对话框

Hope this is useful!希望这是有用的!

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

相关问题 无法使用Android上的Cordova Socialsharing插件在Facebook上共享自定义文本 - Cannot share custom text on facebook with cordova socialsharing plugin on android 使用cordova-plugin-x-socialsharing无法共享文件 - Failed to share file using cordova-plugin-x-socialsharing 为什么我不能使用 cordova-plugin-x-socialsharing 在 MMS cordova ios 中共享消息和图像 - Why can't I share both message and image in MMS cordova ios using cordova-plugin-x-socialsharing Cordova SocialSharing插件-Facebook回调错误 - Cordova SocialSharing Plugin - Facebook Callback Error Ionic Cordova Social Share 插件 - 无法读取未定义的属性“socialsharing” - Ionic Cordova Social Share plugin - cannot read property 'socialsharing' of undefined Phonegap / Cordova:社交共享插件不起作用 - Phonegap / Cordova: socialsharing plugin not working Facebook Cordova插件 - 共享照片(没有链接)导致空的共享对话框 - Facebook Cordova plugin - sharing a photo (with no link) results in empty Share Dialog 使用Wordpress JSON的SocialSharing Cordova - SocialSharing Cordova using Wordpress JSON 无法安装cordova-plugin-x-socialsharing - Unable to installed cordova-plugin-x-socialsharing 无法通过SocialSharing-PhoneGap-Plugin从dataDirectory共享图像 - Can't share image from dataDirectory via SocialSharing-PhoneGap-Plugin
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM