O'Reilly logo

PhoneGap By Example by Andrey Kovalenko

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Sharing on Twitter, Facebook, and other social media

It is always good to add some social media to the PhoneGap/Cordova application. We can draw attention to our application when users do the promotional work for us. What we need is to add share buttons for Facebook, Twitter, Tumblr, and other social media on our application. But how do we make it work for PhoneGap? We can use the PhoneGap Social Sharing plugin.

Tip

You can read details about this plugin at https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin.

We get the Game Over! screen implemented so that we can use this plugin now to provide the ability to share our achieved results.

First of all, let's install the plugin. We can do this using the well-known method, which is as follows: ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required