Unity Facebook SDk how to store players data on Facebook
Closed this issue · 16 comments
I am using the unity SDK for a game. I followed the FriendSmah tutorial and I replicated everything in my game correctly. In the mentioned demo players data such number of coins, bombs and hearts are always reset to their default standards everytime you enter the game. I would like instead to store those values somewhere on the server, especially if a player buys a game item, he should have to find that item when he will enter the game again. Do I have to create a Data Base structure on my web site or is it possible to use something on Facebook side? Thanks
Hey - we are working on a solution for exactly this right now, using the cloud-service Parse.com for doing the data persistence. We have samples for iOS and the Web right now, and we are following up with Android and Unity next.
For now, take a look at:
iOS - https://developers.facebook.com/docs/ios/ios-sdk-games/game-state-persistence/
Web - https://developers.facebook.com/docs/games/canvas-games/game-state-persistence/
Thanks
that’s so nice to know it!
I will give it a look immediately. Any timing for unity?... thanks
Stefano
From: aliparr
Sent: Monday, December 02, 2013 9:07 PM
To: fbsamples/friendsmash-unity
Cc: maidamedia
Subject: Re: [friendsmash-unity] Unity Facebook SDk how to store players data on Facebook (#5)
Hey - we are working on a solution for exactly this right now, using the cloud-service Parse.com for doing the data persistence. We have samples for iOS and the Web right now, and we are following up with Android and Unity next.
For now, take a look at:
iOS - https://developers.facebook.com/docs/ios/ios-sdk-games/game-state-persistence/
Web - https://developers.facebook.com/docs/games/canvas-games/game-state-persistence/
Thanks
—
Reply to this email directly or view it on GitHub.
I used another solution (Unity Facebook credits pack) from the Asset Store of from Unityprefabs, I don’t remember exactly, that was working well. I would also like to replicate it on this new project, but I am worried to use it as many things are changed or are going to change, and its developer doesn’t update it anymore. It is important to store the player’s information (score, bombs, other items....) but it is also important that all those data could be retrieved easily.
The links you sent me are very interesting but I am also curious to know when you will finish something for Unity!
Stefano
p.s.
for your curiosity the game I am working on is the following: https://apps.facebook.com/catacombescape/
it is just at the beginning (Play button doesn’t work, click instead to Start Demo Game). Just explore the enivironment
and kill some zombies. Enjoy it!
From: aliparr
Sent: Monday, December 02, 2013 9:07 PM
To: fbsamples/friendsmash-unity
Cc: maidamedia
Subject: Re: [friendsmash-unity] Unity Facebook SDk how to store players data on Facebook (#5)
Hey - we are working on a solution for exactly this right now, using the cloud-service Parse.com for doing the data persistence. We have samples for iOS and the Web right now, and we are following up with Android and Unity next.
For now, take a look at:
iOS - https://developers.facebook.com/docs/ios/ios-sdk-games/game-state-persistence/
Web - https://developers.facebook.com/docs/games/canvas-games/game-state-persistence/
Thanks
—
Reply to this email directly or view it on GitHub.
Any news about Unity solution?
Thanks
Stefano
From: aliparr
Sent: Monday, December 02, 2013 10:07 PM
To: fbsamples/friendsmash-unity
Cc: maidamedia
Subject: Re: [friendsmash-unity] Unity Facebook SDk how to store players data on Facebook (#5)
Hey - we are working on a solution for exactly this right now, using the cloud-service Parse.com for doing the data persistence. We have samples for iOS and the Web right now, and we are following up with Android and Unity next.
For now, take a look at:
iOS - https://developers.facebook.com/docs/ios/ios-sdk-games/game-state-persistence/
Web - https://developers.facebook.com/docs/games/canvas-games/game-state-persistence/
Thanks
—
Reply to this email directly or view it on GitHub.
Any news about Unity? I really need it!
Thanks
Stefano
From: aliparr
Sent: Monday, December 02, 2013 10:07 PM
To: fbsamples/friendsmash-unity
Cc: maidamedia
Subject: Re: [friendsmash-unity] Unity Facebook SDk how to store players data on Facebook (#5)
Hey - we are working on a solution for exactly this right now, using the cloud-service Parse.com for doing the data persistence. We have samples for iOS and the Web right now, and we are following up with Android and Unity next.
For now, take a look at:
iOS - https://developers.facebook.com/docs/ios/ios-sdk-games/game-state-persistence/
Web - https://developers.facebook.com/docs/games/canvas-games/game-state-persistence/
Thanks
—
Reply to this email directly or view it on GitHub.
What about Unity? I asked 4 times without any answer...
Thanks anyway!
Stefano
From: aliparr
Sent: Monday, December 02, 2013 10:07 PM
To: fbsamples/friendsmash-unity
Cc: maidamedia
Subject: Re: [friendsmash-unity] Unity Facebook SDk how to store players data on Facebook (#5)
Hey - we are working on a solution for exactly this right now, using the cloud-service Parse.com for doing the data persistence. We have samples for iOS and the Web right now, and we are following up with Android and Unity next.
For now, take a look at:
iOS - https://developers.facebook.com/docs/ios/ios-sdk-games/game-state-persistence/
Web - https://developers.facebook.com/docs/games/canvas-games/game-state-persistence/
Thanks
—
Reply to this email directly or view it on GitHub.
Hey maidamedia great game you have got there! Just tried it. Any idea how to send gifts within the game using the facebook sdk for unity? I've searched and searched but nothing good comes up. I've read something about grabbing the request id and using it to retrieve info from the data field but not really seeing how it works or if it is the best way to do it. Tanks!
Ed
Hi edSantos thanks for the compliments. I already had a customized solution to solve the problem (payments, send gifts, inventory items and purchases data storing...) but everything has been lost after the decision of Facebook to stop using the credits system. So I am still waiting for a new solution directly from FB, but I am trying to contact Ali Parr without any success.
Sorted payments and gifting for the moment....just for testing purposes. maidamedia if you need help feel free to ask!
Happy to ear from you good news. What did you realize? I need a GUI component to call the store. I need also to create the store with 4-5 prodcuts, game-coins included. I think that if I do not fill my registration data for purchasing (company name, tax id, bank account,....) I won' never solve the situation. Do you have a sample prefab for purchase and gift to share?
edSantos did you also stored purchase informations?
maidamedia you are right...you do need to fill the company form for purchasing. For testing purposes create a paypal sandbox account (there's a webiste for that) and then on the facebook developers portal create your product "object" under open graph and an .html with your product information that should be stored on a server (use parse for example). The object type must have the same name of the item on the .html. Use the javascript example as a model. I haven't stored any purchase info yet. In order not to fill this thread with more unrelated material please email me at oziriz_zen@hotmail.com ;).
did you notice that friendssmashunity doesn’t work in firefox, while it works perfectly in chrome?
do you have info about this issue?
thanks
stefano (maidamedia)
From: edSantos
Sent: Friday, March 07, 2014 10:41 AM
To: fbsamples/friendsmash-unity
Cc: maidamedia
Subject: Re: [friendsmash-unity] Unity Facebook SDk how to store players data on Facebook (#5)
maidamedia you are right...you do need to fill the company form for purchasing. For testing purposes create a paypal sandbox account (there's a webiste for that) and then on the facebook developers portal create your product "object" under open graph and an .html with your product information that should be stored on a server (use parse for example). The object type must have the same name of the item on the ..html. Use the javascript example as a model. I haven't stored any purchase info yet. In order not to fill this thread with more unrelated material please email me at oziriz_zen@hotmail.com ;).
—
Reply to this email directly or view it on GitHub.
Questa e-mail è priva di virus e malware perché è attiva la protezione avast! Antivirus.
http://www.avast.com
hello...
how to get game level for each player and revenue like farm-villa.
Thank you for reporting this issue and appreciate your patience. We've notified the core team for an update on this issue. We're looking for a response within the next 30 days or the issue may be closed.
Thank you for the feedback, we are always looking to improve the sample project and adding these features will come in time.