This document shows you how to create and customize an app with the Launch a Game on Facebook use case on the Apps Dashboard. Launch a game that players can find and play directly in their Feed or Messenger conversations, on both desktop and mobile devices. This use case uses Instant Games and Facebook Login for Gaming.
This guide assumes that you have read and implemented the requirements for creating an app with Meta.
建立應用程式的方法有很多種。
Select the Launch a game on Facebook 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.
Optionally, you can link this app to an existing Business Account using the dropdown menu, or you can add this at a later date.
Click Create App to save your app's details.
Under Launch a game on Facebook use case, you can see that the following have been added to your use case:
gaming_profile
permissiongaming_user_picture
permissionClick the Customize button to the right of Launch a game on Facebook to customize the following items for your use case:
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 implement Facebook Login for Gaming in your app.
You will see a list of permissions that are available in the Instant Games use case with a full description and requirements for each.
email
– Can be added if your app needs a person's email addressgaming_profile
– Automatically added and can not be removedgaming_user_locale
– Can be added if your app needs a person's localegaming_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.
Now that you have successfully customized your Launch a game on Facebook use case, you can add additional use cases or update the settings for your app in the app Dashboard.
To learn more about the concepts, endpoints, and permissions mentioned in this document, please visit the following guides: