How to get a Facebook App ID (API Key)    
This topic is assigned to Victor

Oct 31, 2014 01:12 PM

                              How to get Facebook App ID (Facebook API Key) ?

If you are using at least one of the Facebook related features/page types in your App then you need to set a Facebook App ID (API Key) in App Dashboard > App Settings > Facebook. The features that are related with Facebook are : App Share, Rate & Review, Mosaic, Photo Effect, Sharing, Ratings, Scoreboard and Messenger.

 In order to get a Facebook API Key, you need first to create a Facebook Application on Select "Add a New App" from the "Apps" Menu. 

Select either iOS or Android. At the start you may select one platform only. But later you will be able to enable the Facebook App for both platforms. 

 Once you select a platform, a quick start screen will (or may) show up. Skip it and select "Create App Id"

Next, you need to input a Name and select a Category. The name of the Facebook App will show up on the device when the user will share a content via the above mentioned features. Leave blank the other fields. 

Once you set a name and a Category, select "Create App ID". Go to the "Settings" Tab. Here you need to set an Email address. Then add a platform. Add the platform which reflects your app. If you plan to make an app for iOS and Android, then add both platforms. 

iOS. If you add an iOS platform then you need to set a Bundle ID and an App Store ID (iPhone or iPad). You need to enable "Single Sign On" as well.

1) Bundle ID. If your App was at least once submitted for publishing then you may find the Bundle ID in App Dashboard .

If you did not publish the app before then you will have to create a Bundle ID on your Apple Developer account: click here ,step 8. If you do not have an Apple Developer account, you may contact us in a support ticket and we will create one for you. But note that you will then have to publish the app under our Apple account in order for the Facebook App to work. 

You may add multiple Bundle IDs separated by comma in case you plan to use the same Facebook App for other apps.

2) iPhone/iPad Store ID. If you App is published, you may set its Apple ID here. The Apple ID can be found on iTunes Connect under the "About this App section". 

If your App is not yet published, then add the Bundle ID once it is released on the Store.

3) .You need to enable "Single Sign On" for each App ID you create. 

* All the other fields need to be left blank.

Android. For Android Platform you need to set an Application Package Name, Key Hashes and enable "Single Sign On".

1) Package Name. If you submitted the App for publishing at least once , you may find the Application Package Name in App Dashboard .


If you never submitted the App (never requested a build) you may then set any package name in this format: com.anyname.anyname. Use lowercase characters, no spaces and no special characters. 

Make sure to use the same package name once you submit the app for publishing: click here , step 9, point 4 .

2) Key Hashes. Use this ID for each Android App: nt9/4S7SokcvsH3x45jRA5udL10=

3) .You need to enable "Single Sign On" for each App ID you create. 

* All the other fields need to be left blank. 

Once you are done click save.

In the next step, you need to make the App Public from the "Status & Review" bar. Once you are done, click save.


Also, in the "App Details" section, you may add metadata for the Facebook App. This is not required, but recommended. You may add a short description, long description, icons, screenshots, etc. 

* All the other fields and sections need to be left blank or as they are. 

best regards,


SC Team.

Dec 18, 2014 07:44 AM
The android information is outdated and does require more information

Dec 18, 2014 07:46 AM
A question, how can you share via apps on Android without going through this process but if you want to have the Share on Facebook it does not?

Dec 18, 2014 08:03 AM
Hello Jamie,

This tutorial was created a month ago and I can assure you it has all the necessary info about creating a correct Android App. Since then nothing has changed.

Answering your question: Because other native Android Apps and their SDK's or API's do not require creating 3'rd party IDs or Keys. Facebook lives in a different world and they have their own rules. They do not care about the developers who are using their SDK which proves the fact of their last update 7-8 months ago - no backward compatibility "nothing". 
This is how they work and you need to be prepared that at some point in the nearest future, all the pages that use Share on Facebook will stop working suddenly. Fixing this would require submitting a new App version on App Store.   

best regards,
SC Team.

Dec 18, 2014 10:31 AM

Dec 18, 2014 10:33 AM
I sent a screen shot which asks for different information. All the information was added and put in  for an update through the builder and Google Play, it still does not work it says the Key hash is not configured

Dec 18, 2014 10:40 AM

You did not configure it correctly. You do not need to set the Class Name field. It should be blank. Also, the Google Play Package Name is not the Google Play Store URL link but the Application Package Name. Make sure to set the Application Package Name used during the submission process otherwise Sharing via Facebook will not work. 
Please check step 3, point 1 from the tutorial. It is explained step-by-step. 

Dec 18, 2014 11:10 AM

Dec 18, 2014 11:11 AM
I have requested a new build and am waiting for the update on the Google Play store to see if this works.

Dec 18, 2014 11:26 AM

I just tested the apk you have requested and Share via Facebook works as expected for me.


Dec 18, 2014 11:28 AM
So before the app shows on Play Store, you may just instal the apk and see if it works properly on your device.

best regards,
SC Team.

Dec 18, 2014 01:00 PM
The update went through and it worked. One question is it shows how can we change that?

Dec 19, 2014 04:51 AM

Right now there is no option to change that. We plan to change this in the next update for this page (in about a month).

best regards,
SC Team.

Jan 08, 2015 10:54 PM
When I am accessing my app's fan page after publishing it to Play Store, i am getting this error : An error occurred, please contact the developer with the following message: (#114 an id must be a valid ID string (e.g., "123")

I used my correct package name and the Key Hash yo provided, but still not able to access the fanpage through my app..  

Jan 15, 2015 10:51 AM
Hello Syed,

The Facebook Fan page is currently not supported. The page is under development. 

best regards,
SC Team. 

Aug 14, 2015 06:20 AM
Hello, Victor,

Quick questions. Since a number of the IDs would be supplied once the app has been published (otherwise you have to go and create them yourselves) [Bundle ID and store ID for iOS] would it be possible for me to remove the sharing option, publish it, then add the sharing/rating options and then create the facebook app ID  getting all the information as you indicate AND then republishing it?

Regarding the Facebook App. Is it a better practice to create one Facebook App ID and add all APPs we create to that one ID. And if so what would be the best practice for naming the Facebook App ID? The name of our business? Just any name? OR is it better to create all different Facebook App IDs connected to each separate app?

Thank you,
Sr. Kathryn

    1 2   next