-
Notifications
You must be signed in to change notification settings - Fork 21
1. Facebook Graph API
Basically you send an HTTP request to Facebook Graph API and you will get a result which is nothing more than a JSON string.
Before you can use the Facebook Graph API you need a so called access token for a user allowing you to make requests on the users behalf. The Facebook SDKs for Android and iOS manage retrieving and caching the access token. On Desktop the access token is retrieved using JavaFX WebView and storage by using the libGDX Preferences class.
Recommended reads:
Login: https://developers.facebook.com/docs/facebook-login/
Graph API: https://developers.facebook.com/docs/graph-api/using-graph-api/
Graph API Reference: https://developers.facebook.com/docs/graph-api/reference
Permissions: https://developers.facebook.com/docs/facebook-login/permissions/
There is also a example libGDX project which shows the usage of gdx-facebook: https://github.com/TomGrill/gdx-facebook-app