How to get Facebook app id and secret key Complete Guide? ?

To use the Facebook API, like the Login with Facebook or Facebook Graph API, you need to create a Facebook App. When you make a Facebook App, that app will have an App ID and an App Secret. You need these credentials to do almost anything with Facebook, including going through the OAuth authorization flow and working with Facebook’s Graph API.With the App ID, you can send API requests to Facebook for data. The Facebook App Secret can be used to decode the encrypted data.

Facebook App and Secret Key

 steps to create Facebook app and secret key:

  1. Login to your Facebook account and navigate to http://developers.facebook.com
  2. if you were already registered for Facebook developer account, you can skip this step and go to step #3 of this post. If you are not registered on Facebook developer account, then you need to follow these steps:
    • Click on Get Started button from top right corner.
    • Click on next button from the popup
    • Enter your phone number and verify your account using text message or phone call.
    • On next screen, after verifying account, enter your app name and your email and click on Next button.This app name will be shown to end users when they will try to “Login with Facebook” and they are redirected to Facebook website for login permission. So, make sure you give meaningful name here which can identify your website.
    • Enter captcha code and click on submit button.
    • From welcome screen click on close(x) icon. It will open product list page
  3. If you are already registered with Facebook developer perform below steps:
    • Click on “My App” >> “Add a New App”
    • From the popup enter “Display Name” of your new application and“Contact Email”, then click on “Create App Id” Button.This app display name will be shown to end users when they will try to “Login with Facebook” and they are redirected to Facebook website for login permission. So, make sure you give meaningful name here which can identify your website.
    • Enter captcha code and click on submit button and It will open product list page.
      You might also like Facebook Instant Article Complete guid to Earn
  4. From the product list page click on “Set Up” button from product with name “Facebook Login”.
  5. In left side menu, click on the “Facebook Login” link to expand the sub menu. Click on “Settings” from the sub menu.
  6. Enter your website URL in “Valid OAuth redirect URIs”. For example, my website domain is yourdomain.com so I entered https://yourdomain.com
  7. Now click on “Dashboard” from left side menu.
  8. From the dashboard, click on “Show” button in “App Secret” text box. You can copy the “App Id” and “App Secret” which you can use for your Facebook API calls.
  9. By default when you create Facebook application, it is private and available only to you for testing purpose. End users can only use it after you make the app public. To do that go to Facebook application page, click on “App Review” from the left menu and activate your app.
  10. Click on the switch from “Make My first app public?” section and set it to “Yes”.
  11. Click on “Confirm” button in popup to make your app public.

 

Final Note:

Feel free to ask me questions if you are unable to complete the process or stuck in between. If you know someone who need help with this, share this post and let other know about this simple steps to get Facebook App ID & Secret Key.

How to get Facebook app id and secret key Complete Guide? ?
Rate this post

Spread the love
  • 1
    Share

Leave a Reply

Your email address will not be published. Required fields are marked *