This document shows you how to create and customize an app with the Facebook Login for Gaming use case on the App Dashboard.
You need the following:
There are a number of ways to create an app.
Select the Authenticate and request data from users with Facebook Login use case.
You can click the chevron to the right of the description to view what else you can do with this use case and the requirements for this use case.
Click the Next button.
You will be able to customize your use case later on the app Dashboard.
You will be asked if you are building a game, select Yes and click Next.
In this step you will add:
Optionally, you can link this app to an existing Business Account using the dropdown menu, or you can add this later.
Click Create App to save your app's details.
In the Get gaming login and request user data section you will see that Facebook Login for Gaming and the gaming_profile
and gaming_user_picture
permissions have automatically been added to your app. This allows your app to use Facebook Login and ask your app users for permission to access their gaming profile information and profile picture.
Click the Customize button.
Facebook Login for Gaming allows you to control oAuth settings, and add a deauthorization callback URL and redirect URI validator.
The Facebook Login for Gaming quickstart allows you to quickly get the code to implement Facebook Login for Gaming into your app.
You will see a list of permissions that are available in the Facebook Login for Gaming use case with a full description and requirements for each.
gaming_profile
– Automatically added and can not be removedgaming_user_picture
– Automatically added and can not be removedAfter you add a permission to your app, you can see the status for that permission:
You can also see the number of successful API calls you have made to endpoints that require each permission.
Click the Go back button in the upper right or Use cases in the left side menu to add more use cases to your app.
These are the use cases most commonly used with the use case you chose when you created this app. You will customize most of the use cases listed on the app Dashboard then implement code to use them by following the instructions in the developer documentation.
We recommend completing each use case before adding another one. This will allow you to view the functionality each use case provides so you don't add a use case that your app will not need.
Use case | Permissions to add and Products to implement |
---|---|
Help players find friends so they can play together – Get more players for your game by helping current players find their friends so they can play together. |
|
Share your gameplay on Facebook and Instagram – Players can share screenshots and video clips of their gameplay to Instagram and Facebook, including Stories and Facebook Groups | Sharing for Gaming |
Track engagement with App Events – Meta App Events allows your app to understand how people engage with your business across apps, devices, platforms and websites. | Meta App Events |
Get real-time notifications with Webhooks – Get automatic HTML notifications when app users make changes related to the permissions that you've added to your app. | Meta Webhooks |
Now that you have successfully customized your additional use cases, you can test your implementation, add test apps, Pages, and users, and more.