Cordova / Phonegap社交分享 [英] Cordova/Phonegap Social Sharing
问题描述
我正在寻找一个简单的解决方案,在cordova / phonegap应用程序内部共享。我想寻找添加Facebook,Twitter和电子邮件共享。很像这个应用程序有: http://itunes.apple .com / us / app / mars-hill-church / id322993145?mt = 8 。
I'm looking for an easy solution for sharing inside of a cordova/phonegap application. I'm looking to add facebook, twitter and email sharing. Much like this app has: http://itunes.apple.com/us/app/mars-hill-church/id322993145?mt=8. If you click through the sermons you can actually share an individual sermon.
我试过使用这个: http://developers.facebook.com/docs/reference/dialogs/feed/ 。我将在iframe中发布分享帖子,但不幸的是,facebook不允许您在iframe中加载。
I've tried using this: http://developers.facebook.com/docs/reference/dialogs/feed/. I was going to launch the share post inside of an iframe but unfortunately facebook doesn't allow you to load within iframe.
我希望共享部分留在应用程序尽可能不启动safari。但是,我会安排一个Facebook按钮(自定义外观),我可以点击,它启动我从应用程序到safari分享一个故事。
Preferably I want the share portion to stay inside the app as much as possible without launching safari. However, I would settle for a facebook button (Customized look), that I could click on and it launched me out of the app into safari to share a story.
Cordova 1.8
IOS 5
JQuery
Jquery Mobile
Cordova 1.8 IOS 5 JQuery Jquery Mobile
推荐答案
Facebook Connect在Apache Cordova / PhoneGap?代码托管在
https://github.com/davejohnson / phonegap-plugin-facebook-connect
,并有新闻稿
http://phonegap.com/2011/08/30/get-the-new-phonegap-facebook-platform-plugin/ 。
Have you tried the official plugin for Facebook Connect in Apache Cordova/PhoneGap? The code is hosted at
https://github.com/davejohnson/phonegap-plugin-facebook-connect
and there's a press release at
http://phonegap.com/2011/08/30/get-the-new-phonegap-facebook-platform-plugin/.
这听起来像你以前的样子,但我还没有尝试过。
This sounds like what you're after, but I haven't tried it myself yet.
这篇关于Cordova / Phonegap社交分享的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!