- Home /
How to intergrate facebook SDK with a mobile game
I have a created a mobile game and i would like to know how to add a button where the user could click on it and a window would appear asking them to post their score and high score to facebook. If someone could post some code or give some documentation how I could do that then please let me know.
Answer by zzzzzz789 · Feb 04, 2015 at 07:44 PM
There is an official Facebook SDK for Unity. Check it out here: https://developers.facebook.com/docs/unity
For mobile here are Getting Started tutorials
iOS: https://developers.facebook.com/docs/unity/getting-started/ios/
Android: https://developers.facebook.com/docs/unity/getting-started/android/
To get started quickly check out the Examples folder after importing the SDK for a 'Interactive Console' scene which will give you a demo of implementation.
Their SD$$anonymous$$ works pretty well. Just wanted to chime in and say that I couldn't get the invite function to work in the most recent SD$$anonymous$$. It reports no errors, but it also doesn't send an invite. It could be something with the app settings on FB app page though. I have seen others report this issue, but no resolution. Everything else seemed to work like a charm.
@rodude123 What part isn't working? With some more information I can help you debug.