Share on Facebook / Twitter / E

I'm coding an app for iOS / WP7 / Android using PhoneGap and it has to allow the user to publish comments to its facebook wall / twitter or send it by e-mail.

What is the easy way to face these tasks? any common approach? maybe a plugin? I have seen some similar posts in stackoverflow but none of them seems to offer a plain solution for all platforms...

Thanks


Here's a nice one, it's a JQuery plugin that not only has a nice interface but also provides the implementation details (link) to actually share something on each one of those frameworks!

jQuery social media share

If you want more access (like FB Wall), you'll need to actually code against the FB SDK (in javascript, not that hard but tons of functionality!).

PS: I am not affiliated in any way to this plugin or to it's author


You can use JavaScript based API's to make calls from your native apps that are not platform specific (so you can implement the same code in several native apps).

For instance, here is a link to the Facebook JavaScript API: http://developers.facebook.com/docs/reference/javascript/

For sending email, you could allow your users to compose the email in your app, then use an AJAX call to send the data to your server where your server-side script can send the email.


这里是一个JavaScript的Facebook,电子邮件和Twitter几行代码的实现:http://www.sebastianviereck.de/en/mobile-multi-share-implementation-with-jquery-mobile/

链接地址: http://www.djcxy.com/p/55608.html

上一篇: 如何记录一个需要常量的参数

下一篇: 分享到Facebook / Twitter / E