Social networking questions (Game Center, Facebook, Twitter)

I am really new to the network side of corona and i’ve been playing around with it a lot. I’ve also been reading a lot on game center and how to implement it, but my biggest question is what can it really do? So here are my questions for Game Center:

  1. If my understanding is correct, Game Center also unlocks peer to peer connection. Is there any tutorial on how to enable this for corona? Most of the tutorials, documents i read are for achievements, highscores.

  2. Limits of file size that i can store on Game Center? Can i store the whole save game on Game Center? (Something like visiting a friend in Tiny Tower where i can see my friend’s tower). If so, is there any tutorials for that?

Facebook:

  1. How do i create a simple like button for my game’s facebook page? I know how to create a button, but what do the function needs to do when the button is release?

Twitter:

  1. When a player presses the twitter button. I want the player to tweet a message saying a fixed message. How do i do that?

Sorry for the question scope. I know a lot requires a sample code, so if you find any tutorials / guides that i missed, please link it here [:

Thanks

  • Jeff
    [import]uid: 74723 topic_id: 26083 reply_id: 326083[/import]

1. If my understanding is correct, Game Center also unlocks peer to peer connection. Is there any tutorial on how to enable this for corona? Most of the tutorials, documents i read are for achievements, highscores.

I don’t believe we have access to any peer-to-peer GameCenter features. You have access to leaderboards, achievements and some social networking aspects (friend lists, etc.). I’ve not seen a way to use it for gathering friends to play multi-player games. Though honestly I’ve not dug that deep into what can be done with the friends list.

2. Limits of file size that i can store on Game Center? Can i store the whole save game on Game Center? (Something like visiting a friend in Tiny Tower where i can see my friend’s tower). If so, is there any tutorials for that?

I don’t have an answer or even a guess on this one. Anyone else? Buehler?

**Facebook:

  1. How do i create a simple like button for my game’s facebook page? I know how to create a button, but what do the function needs to do when the button is release?**

I’m sure there is examples in the Facebook APi (https://developers.facebook.com/docs/reference/api/) that can help with this. Most of what I’ve seen is for embedding it on a webite.

At a minimum, you would need to login using their Single Sign-on feature (SSO) which there are Corona SDK Blog posts on, you would then have to do a network.request() api call hitting the right Graph API GET call and then listen for some success event.

**Twitter:

  1. When a player presses the twitter button. I want the player to tweet a message saying a fixed message. How do i do that?**

There is an app in the SampleCode for the latest daily builds that shows how to do twitter stuff. There us a uAuth.lua module that deals with the Twitter authentication bits, and perhaps even a usable twitter.lua library. I didn’t look at it too closely. That would be your best bet for Twitter code since it’s all there.

Twitter also supports these things called “intents” (I seriouslly don’t know why we make up some of the words that we use in this industry)… Using intents is basically opening up a web popup to a URL and having their logged in web-presence do the work for you. They would have to be signed in to Twitter via Safari on the device for it to work though. You’re better off checking out the Sample Code and doing Twitter that way.
[import]uid: 19626 topic_id: 26083 reply_id: 105645[/import]

Thanks for the replies, i will take a look into it. Many more stuff to learn and play with [: Hopefully peer to peer will come soon to corona, and some easy to implement like button for facebook :smiley: *prays* [import]uid: 74723 topic_id: 26083 reply_id: 106019[/import]

Hi JeffreyQJr

These socail pluging can be implemented very easily but can you please share that where you want to display these plugin, measn on blogger or wordpress blog etc.

Hi JeffreyQJr

These socail pluging can be implemented very easily but can you please share that where you want to display these plugin, measn on blogger or wordpress blog etc.