How to Get App ID and Secret Key of a Facebook Application

In my recent post, I explained the complete process for fetching and displaying the basic profile info of a Facebook user in addition to connecting and logging in to Facebook. But for doing that, you will have to acquire an App Id and App Secret Key from Facebook by creating an app on the Facebook Developer Platform. These simple steps with screenshots will guide you throughout the process of getting necessary App Credentials for using in your app. Lets have a look on how to do it.

Steps for Knowing Your App ID and App Secret:

1. Log in to your Facebook account and visit http://developers.facebook.com.

2. Click on Apps in top menu bar, and click on Register as a Developer (as in screenshot below):

Register as a Developer on Facebook

Register as a Developer on Facebook

3.  A dialog box will appear, asking your confirmation for acceptance of terms. Click Yes to accept the terms, and then click on Register to add your entry to the developers list. After clicking on register, you will be taken back to developers home page.

Confirm Your Registration as a Developer

Confirm Your Registration as a Developer

Note: Your account must be verified with phone verification in order to register as a developer on Facebook.

4. Now click on Apps button once again, and then click on Create a New App (as in the screenshot below).

Creating a new App on Facebook Developers Platform

Creating a new App on Facebook Developers Platform

5. Check and enter the following information in the box:

  1. Choose an appropriate name for your app.
  2. App namespace is the username used to identify your app URL. Allowed characters are lowercase letters, underscores and dashes. And its length must be less than or equal to 20.
  3. Choose suitable category for your app.
  4. Click on Create App button and then you will be asked for human verification using reCaptcha. Enter Captcha in the given field and submit it to create your app.
Entering Facebook App Information

Entering App Information

6. You will be taken to the dashboard of your newly created app automatically. By default, the apps are in offline mode and you will have to make them live by changing some settings manually. Now click on Show button to get your app secret. You will be required to enter your password for revealing secret key (and please do not disclose your secret key to anyone). Copy both parameters (i.e app id & app secret) and save them for using into the app.

Finding App Secret Key from App Dashboard

Finding App Secret Key from App Dashboard

7.  Now click on Facebook App Settings icon located in the app dashboard, and you will reach the settings page. Now enter your Domain Name (in App Domains box) on which you wish to use your Facebook app, and your Email in Contact Email box. Use your regular email on which you log in frequently.

Changing App Settings from Dashboard

Changing App Settings from Dashboard

Making Your App Online for everyone:

1.  As you have already set up your app, and now its time to make it available to public. For doing this, click on Navigate to Status of Facebook App icon in app dashboard, and then change the status of an app to Online for making it available to everyone out there. For doing this, you need to click on No to change it to Yes. See what it will look like after completing this step. Screenshot below:

Changing Status of a Facebook App

Changing Status of a Facebook App

2.  Necessary requirements for an app are complete, and you may now be able to make API calls to Facebook using your App Id and App Secret Key. But, there are few more things which you need to set up. For example, adding a short and long description, explanation for permission, privacy policy, terms of use, user support email and user support URL. All these options are available by clicking on Navigating to Facebook App Details icon located on left side menu in the dashboard. See screenshot:

Entering Facebook App Information

Entering Facebook App Information

3.  After completing the entry of the above information in your Facebook app, you may now proceed towards entering the compulsory information required for being compliant with Facebook terms and policies. Enter the URLs of your privacy policy and terms of service to enable users to see legal information, and your support page URL through which users might reach you if they want to report bugs or suggestions related to your app. See screenshot:

Entering Contact Information in Facebook App

Entering Contact Information in Facebook App

4. Next is to upload images for displaying your app in Facebook app center. This enables users to judge your app easily, as a picture speaks louder than words. These banners and icons have different sizes and you will need to create images of exact sizes mentioned in the page. See screenshot below:

Uploading App Images in Facebook

Uploading App Images in Facebook

After entering app information, required URLs, and app banners/icons, click on save changes.

Your app is now ready for public use. Feel free to share your feedback and suggestions in comments section below.

One Reply to “How to Get App ID and Secret Key of a Facebook Application”

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

scroll to top