[英]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.