Hey, its possible with Corona connect with friends in Facebook and send and receive lives for example like candy crush?
Thanks in advance!
Hey, its possible with Corona connect with friends in Facebook and send and receive lives for example like candy crush?
Thanks in advance!
You probably have to register your player at some 3’rd party server like Scoreoid to be able to cross-correlate players and send things to each other. But you can use their facebook identity for registering.
I am not sure if you can get their friend lists though, so you may need to get a player to enter their friends name.
Edit:
You can share scores with friends using facebook score api:
http://stackoverflow.com/questions/17400605/facebook-score-api-with-corona-sdk
thank you renato, and send and received lives is possible?
You can send the lives using your own server and then only call facebook to show a message to that person that someone sent him lives. That way you can also make your server send Push Notification to alert the user that he received lives.
thank you very much Renato!!!
Then, will be this algorithm?
APP USER 1:
1º-Send request to friends (USER 2).
SERVER:
2º- Server send to Facebook a request with “product ID”? --> Im not sure
FACEBOOK:
3º-Send to select friends --> this is possible right? ( send to multiple users).
4º-If user not have app, download and if have app go to step 5 (if user not have app installed, he/she can received the request not?
APP USER 2:
5º-Send live if he have
SERVER:
6º-Process the live and send to user 1
Thank you very much in advance!!!
Sorry, a question more, can you give me a tutorial for connect Corona to my server? Thank you very much
You can find a lot of examples of how connect your Corona App to a server. There is a blog post from Rob that teach exactly that. It is always a best practice to look for a info in the Corona Forum and blog before asking here.
About the Facebook, it will really depends on how you want it. I like to control all requests on my own server and uses Facebook only to notify the person.
The Friends selection should be done inside your app. Simply get the list of friends using the Facebook API and show them using a tableview and checkboxes.
So, here is how I would do it:
INVITE FRIENDS / SEND LIVES TO FRIENDS
On my app, I would show the user a list of his friends and ask him/her to select which friends he want to invite/send lives.
After he selected, I would send that info to my server where it would be stored in my database. My sever would also process any information required (like giving lives to a person and sending push notification to that person). When the app receives the OK (that all data was stored/processed) from my server, the app would request Facebook to notify the selected people. You can make your server do the request also, but I find doing it from the app easier.
When a friend on Facebook clicks on the request, he/she will be redirected to your game page on facebook. If I am not mistaken, you can set some extra params in the url, so you can identify that the person clicked in the link.
How can I do this? Any suggestion?
You probably have to register your player at some 3’rd party server like Scoreoid to be able to cross-correlate players and send things to each other. But you can use their facebook identity for registering.
I am not sure if you can get their friend lists though, so you may need to get a player to enter their friends name.
Edit:
You can share scores with friends using facebook score api:
http://stackoverflow.com/questions/17400605/facebook-score-api-with-corona-sdk
thank you renato, and send and received lives is possible?
You can send the lives using your own server and then only call facebook to show a message to that person that someone sent him lives. That way you can also make your server send Push Notification to alert the user that he received lives.
thank you very much Renato!!!
Then, will be this algorithm?
APP USER 1:
1º-Send request to friends (USER 2).
SERVER:
2º- Server send to Facebook a request with “product ID”? --> Im not sure
FACEBOOK:
3º-Send to select friends --> this is possible right? ( send to multiple users).
4º-If user not have app, download and if have app go to step 5 (if user not have app installed, he/she can received the request not?
APP USER 2:
5º-Send live if he have
SERVER:
6º-Process the live and send to user 1
Thank you very much in advance!!!
Sorry, a question more, can you give me a tutorial for connect Corona to my server? Thank you very much
You can find a lot of examples of how connect your Corona App to a server. There is a blog post from Rob that teach exactly that. It is always a best practice to look for a info in the Corona Forum and blog before asking here.
About the Facebook, it will really depends on how you want it. I like to control all requests on my own server and uses Facebook only to notify the person.
The Friends selection should be done inside your app. Simply get the list of friends using the Facebook API and show them using a tableview and checkboxes.
So, here is how I would do it:
INVITE FRIENDS / SEND LIVES TO FRIENDS
On my app, I would show the user a list of his friends and ask him/her to select which friends he want to invite/send lives.
After he selected, I would send that info to my server where it would be stored in my database. My sever would also process any information required (like giving lives to a person and sending push notification to that person). When the app receives the OK (that all data was stored/processed) from my server, the app would request Facebook to notify the selected people. You can make your server do the request also, but I find doing it from the app easier.
When a friend on Facebook clicks on the request, he/she will be redirected to your game page on facebook. If I am not mistaken, you can set some extra params in the url, so you can identify that the person clicked in the link.
How can I do this? Any suggestion?