-
Notifications
You must be signed in to change notification settings - Fork 21
2. Setup Facebook App
Thomas Pronold edited this page Jul 2, 2016
·
6 revisions
Before you can use gdx-facebook you have to set up a new app at https://developers.facebook.com/apps/
- Got Settings -> Advanced -> Enable "Native or desktop app?"
- Go to Products -> Facebook Login -> Client OAuth Settings and add to Valid OAuth redirect URIs:
https://www.facebook.com/connect/login_success.html
- Add a new platform Android.
- Enable Single Sign On
- Add the key hashes of your debug and certificate. Read this to find out how to do that. https://developers.facebook.com/docs/android/getting-started/
- Enable Deep Linking (only required when using Game Requests feature)
- Add a new platform iOS
- Enable Single Sign On
- Add the Bundle ID. (Must be same as your robovm.properties->app.id value.)
- Enable Deep Linking (only required when using Game Requests feature)
- Add a new platform Website
- Add the Facebook Login product to your app and add each URL your app is hosted to Valid O-Auth redirect URL list. Like: http://localhost:8080/html/
There is also a example libGDX project which shows the usage of gdx-facebook: https://github.com/TomGrill/gdx-facebook-app