O'Reilly logo

Mastering Cocos2d Game Development by Alex Ogorek

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 Facebook and Twitter (and more)

Sharing games on social media is very common these days. Our game will not be an exception to that. It's not only an effective marketing tool for your game, as users promote the game for you on their social media pages, but also a great way for engagement to rise, as humans love competition. Being able to share and compare their scores (and indirectly compete) makes users want to play the game even more, which makes it a win-win situation for both the developers and players.

Using the built-in share feature

The easiest way to integrate Facebook, Twitter, messaging, e-mail, and other sharing options is through the UIActivityView object. It's the same sharing you'll see when you press the button in the bottom-left ...

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