Share a high score on Facebook or Twitter

Go To


I've searched google for about an hour and haven't found a clear solution to this problem. I see that a lot of people recommend sharekit, however I don't want a menu screen to just pop up from the bottom of the screen with sharing options.

On the death screen I would like to have a Facebook icon and a twitter icon like you see on many games, and depending on which you click you can share a post to your wall with your high score. Can anyone point me towards a good tutorial for this?

2012-04-04 05:35
by xIlluzionx


If you're on iOS 5 you can use the new twitter API:

Before iOS5, you can either use MGTwitterEngine:

Or, you can tweet using NSUrlRequest and the twitter REST APIs.

Specifically: check here

For facebook, you can use the graph API. Here's an iOS tutorial:

2012-04-04 05:43
by bryanmac
+1 Definitely use the Twitter framework in iOS 5 - Apple has an extremely simple/clear example project in the developer sectio - Stephen Morris 2012-04-05 03:12


For twitter integration you can try this

2012-04-04 05:57
by Swati
+1 for specifically pointing out the OAuth stuff - bryanmac 2012-04-04 06:09