In this article, we will learn how to generate credentials (App ID and Secret) for authentication and access to our project developed in ScriptCase through Facebook.

1 - The first step is to create a Facebook account as a "developer". We need to access the link below to create this account, and then click "Log in", as highlighted in the image below:

[Facebook for Developers](https://developers.facebook.com/)

![](https://help.scriptcase.net/galleryDocuments/edbsna8590f65de8725f16a2b72c142f2369be56e50975478d7e8182634ec2ac8a1876358d9bb53e6817b9861067dcd9c11d1?inline=true)

2 - Let's go to the "Sign up for Facebook" option, according to the first one below, and then fill in the fields with our data and click on "Sign up", as shown in the second image:

\
![](http://34.207.224.239:3000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBcEJOIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--85890df478489ebc0ed339f98cdf5ea6f5f0ca4a/image.png)

![](http://34.207.224.239:3000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBcEpOIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--624b9941b16442ac1663864cd0c9c5a0c69587fe/2.png)

3 - You will be asked for a confirmation code to validate the registered email that we will receive through the email itself, so just insert the code and click on Continue.

![](//img.zohostatic.com/zde/static/images/caution.png)

**If the page is redirected to the Facebook social network, just exit and enter the **[**Facebook Developer's page**](https://developers.facebook.com/)** link again to log in with the created account credentials, and the redirect will be made to the create a Facebook for Developers account page.**

4 - On the Facebook for Developers page, just click on "Continue", and follow the next steps until finished. In the "Verify account" step you will be asked for your cell phone number to confirm your account via SMS, and in the "About you" step, we will choose the "Developer" option.

5 - On the main page, we'll go to the "Create App" option, and then we'll choose the "Consumer" option as the type of application to be created, and finally, in the "Details" step, we'll name it view for our app, we'll provide a contact email for the app, click "Create App", and enter the password we created at the time of account registration.

\
![](http://34.207.224.239:3000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBcFZOIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--7ee11958e967c353d4b72195af61d9c2dd7455f3/3.png)

\
![](http://34.207.224.239:3000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBcGhOIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--7a9fb6a7d6fa249200ca0978d5f007a142670461/4.png)

6 - On the page to add products to our application, let's choose the option "Facebook Login", clicking on "Set Up", as shown in the image below:

\
![](http://34.207.224.239:3000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBcHBOIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--20fa7009bb8ba393747f778e4b120dccab5ee2c7/5.png)

7 - We will select the option "Web" as the means of access that we intend to configure this authentication, we will define the URL of our website and click on "Save":

\
![](http://34.207.224.239:3000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBcHROIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--0f3f1557a4dae9d647903e32829989ad527d6fca/6.png)

\
![](http://34.207.224.239:3000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBcDFOIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--2d2d2d6db9bd50ffd558574717948bf25ef9473e/7.png)

8 - Finally, on the left side menu, we go to the option "Settings -> Basic", where we will be able to view our application ID and its secret key to connect with the ScriptCase application (in the authentication of the application type Control, ie in the security module). Remembering that we must define again the domain of our application where authentication will be performed for access to applications developed in ScriptCase.

\
![](http://34.207.224.239:3000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBcUJOIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--e8dfc875e42c55bb3c0ac4ce9837e4595c77a2b8/8.png)

\
![](http://34.207.224.239:3000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBcVJOIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--5a2b87ae2636df23c8b4f7fa5e127efa24f17a84/9.png)