Official Content

You must register the Facebook application to use the Facebook features offered by GeneXus in the Native Mobile Generator.
This document will show how to do this in a few steps.

Step 1: Registration and Validation

In the main screen of the Facebook Home Page go to the Developers Center.


You will be requested to sign in with a valid Facebook Account.

In some cases, you may have to validate your account. The following link can be very helpful to complete this step:

Step 2: Create your application

Once you have logged in to your Facebook developers home page with a valid Facebook developer account, click on the Apps button and then choose Create a New App.


Complete the information requested about the App. 

Note: Only providing a valid app Name is mandatory; any other information is optional.


Step 3: Connect your Facebook app with your Native Mobile Application in GeneXus

The last step is to connect your Native Mobile application with the Facebook one. This has to be done in two places.

a- In GeneXus:

Copy the Facebook AppID value (in Facebook web site) to the Facebook App Id property of the Main Object, as shown in the figure.


b- In Facebook:

Open your application and click on the Settings option. Now on the basics settings, add the platforms that you need by clicking the Add Platform button.

In case it is for Apple, you need to:

Enter, in the iOS Bundle ID, the value of the iOS Bundle Identifier property of your GeneXus' main object.



And in case it is for Android you need:

The package name is on the Android Package Name property on the Android Group of the Main object.


And the key hash.

Note: If you are signing the application with the default keystore, the key hash is qzImOU1ch6oucyE6hr8s9GbTgys=

To get the key hash (if you are not using the default) you need to know:

  • Where the keystore file is (in this example is "C:\my-release.keystore")
  • The alias in keystore (in this case is "alias_name")
  • The path to keytool (in this case is "C:\OpenSSL-Win32\bin\keytool.exe")
  • The path to openssl (in this case is "C:\OpenSSL-Win32\bin\openssl")
  • The password to keystore (In this case is "artech")

With this, run this code in CMD:

"C:\Program Files\Java\jdk1.6.0_25\bin\keytool.exe" -exportcert -alias alias_name -keystore C:\my-release.keystore | C:\OpenSSL-Win32\bin\openssl sha1 -binary | C:\OpenSSL-Win32\bin\openssl base64>keyhash.txt

This will leave the key in a file called keyhash.txt.


If you need to add "class name", this value is in the AndroidManifest.xml, it must be the class that contains the main action:



For testing purporses, you have to add Developer Roles to make tests on your application.


Last update: February 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant