![]() Register platforms on FacebookĪlso, Facebook must know about those applications that can access it. ![]() ![]() Now we have an APP ID for your React Native application to access Facebook. Facebook will ask you to choose a usage scenario, but we can skip this step.In the window that appears, enter the required information and click on the Create App ID button.Go to Facebook Dashboard page and click on the Add a New App button.So, you can start creating an application. By default, “Facebook for developers” is available for all accounts. You can use your personal one, but I advise you to register a separate one. You need to have a Facebook account to create applications on “Facebook for developers”. After creating the application, you will receive a unique ID, which is required to identify your React Native application on Facebook. – you need to create an application in “Facebook for Developers”. To use the “products” provided by Facebook, for example, authorization, advertising, in-app purchases etc. An example of getting a token through the Login Managerġ.Connecting Facebook SDK and setting up Facebook APP ID in app code.To configure our application, you must perform the following sequence of actions: And Facebook returns to the mobile application response with the result.Ī brief description of the authentication setup process.After successful verification, Facebook processes the requested action.Facebook verifies the request with a pair of values: APP ID, packageName / bundleId.ID of the source code of the React Native application ( packageName / bundleId for Android / iOS, respectively).APP ID, which corresponds to the Facebook application ID.The following data is attached to the request: The mobile application sends a request to Facebook services to perform an action.A user initiates the action that is associated with Facebook services (in the post we will have authentication). ![]() The sequence of interaction is as follows: It will allow us to understand why we perform particular actions. However, before starting, let’s consider a diagram of the mobile application interaction with Facebook services. ![]() The purposes of this post are: providing a step-by-step tutorial about Facebook authentication connection to the React Native application, a description of the process of interacting with the server, some of the pitfalls on the way and my groundwork about the case. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |