The Facebook app is used in many cases, the most common use case is Facebook login integration on the website. In this tutorial, we’ll provide a step-by-step guide to create Facebook app and generate keys. You need to register as a Facebook developer and create an app to use the Facebook authentication service in the web application. In the developer panel, you can create Facebook app and generate App ID & App secret, which are used in Facebook SDK and API integration for authenticating your web application with Facebook.
Create Facebook App
The following app creation flow helps to create a Facebook app and get the App ID & Secret key on FB developer panel.
Before you start register as a Meta developer and be logged into your Facebook developer account.
- Navigate to the Apps page (from the menu at the navigation bar) and click the Create App button at the top-right corner.
- The app creation process will start, and the widget form will appear. You must input all the required details to complete the process.
- App details:
- Enter the App name and App contact email.
- Use cases:
- Select a respective use case from the list. In our case, the use case will be Authenticate and request data from users with Facebook Login.
- Business:
- Specify whether you want to connect a business portfolio.
- Requirements:
- Review the requirements for publishing your app.
- Overview:
- Take a look at the summary of all the steps you have completed and proceed with the Go to Dashboard button.
- Go to the Use cases section and select the Customize option.
- Navigate to the Facebook Login » Permissions and features section:
- If you want to get the user’s email address, add email permission to the app.
- Navigate to the Facebook Login » Settings section:
- Set the Redirect URL in the Valid OAuth Redirect URIs input and Save changes.
- Go to the App roles » Test Users section:
- Create test users to test the integration before making the Facebook Login available in production.
- Navigate to the App settings » Basic section:
Here you will see the App ID and App secret, update all the basic details of your app and save changes.
- App domain
- Privacy Policy URL
- Terms of Service URL
- App icon
After completing the testing process, you need to publish the app for production use.
- Navigate to the Publish section, complete all the pending steps, and submit for review.
Once the App Review process is completed and approved by Facebook, your app will be published, and Facebook Login integration can be accessed by the Live Facebook users.
Conclusion
You only need the App ID and App Secret to integrate Facebook Login in the web application. Check the following tutorials where we’ve used the App ID and App Secret for accessing Facebook APIs (OAuth API, Graph API, etc.).
Looking for expert assistance to implement or extend this script’s functionality? Submit a Service Request
What if I am building and iOS app and it does not have a URL to add as mentioned in step 3? TIA
Hi. I’m making one app, where i use the permission link_user, but i can capture of some accounts , but others i can’t capture , do you have idea about it ????
thanks!
it was pretty easy… and yes now i have got my fb app…
Hello!
I was wondering if there’s a way to link the facebook app to a specific Facebook page. I need it to pull in the social media feed of a page that I’m an admin of, but I can only get it to pull in my personal sites posts.
Easily understood !!
Thanks for the reply sir i got it, is it possible to store the Password of an account Registering from social network login in the user table.How we will identify the user who will login again through Social login,What will be the process for that ???
Sir i have an query that we are registering a user with a normal form filling process and other one is through Facebook. If we need to store the data of that Facebook user, how will we do that. Is it stored in the same table, in which a user forms the fill and its entry goes into the table OR we have to design a separate table for those users who have registered through Facebook/Google +.
Kindly revert me asap
@Robin You should maintain one table for all users. Add a column in
userstable nameduser_typeand insert a type based on different registration process (user_typecolumn value would befacebook,google,website, etc.).