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

Chapter 6. Share Your Crazy Bubbles Game Result on Social Networks

In the previous chapter, you learned how to create a HTML5 game called Crazy Bubbles, where the main idea is to collect as many bubbles of the same color as possible. In this chapter, we will communicate with several of the most popular social networks: Twitter, Facebook, and Instagram. We will implement a game over criteria for the game and review several options to share our results on social networks. Here is a short list of the topics we will cover in this chapter:

  • Checking the game over criteria
  • Posting a new message on Twitter and Facebook
  • Communicating with the Instagram application

Implementing the game over screen

Before sharing the game results, we should implement the game ...

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