Share on Facebook / Twitter / Email using PhoneGap / jQueryMobile

I am encoding an application for iOS / WP7 / Android using PhoneGap, and it should allow the user to post comments on the facebook wall or twitter or send it via email.

What is an easy way to solve these problems? any general approach? maybe a plugin? I saw some similar posts in stackoverflow, but none of them offer a simple solution for all platforms ...

thanks

+7
source share
3 answers

Here's a good one, this is a jQuery plugin that not only has a nice interface, but also provides implementation details (link) to actually share something on each of these frameworks!

jQuery social media share

If you want more access (e.g. FB Wall), you will need to actually copy the FB SDK code (in javascript, not so hard, but tons of functionality!).

PS: I'm in no way affiliated with this plugin or author

+3
source

You can use the JavaScript-based API to make calls from your native applications that are not platform specific (so you can implement the same code in multiple native applications).

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

To send an email, you can allow your users to compose an email in your application, and then use an AJAX call to send data to your server, where your server side script can send an email.

+1
source

javascript for facebook, email and twitter is implemented here in several lines of code: http://www.sebastianviereck.de/en/mobile-multi-share-implementation-with-jquery-mobile/

0
source

All Articles