Facebook, with over 2.8 billion monthly active users and targeted advertising, can be a powerful platform for promoting your app.
With Natively you can convert any app to native iOS / Android and promote it on Facebook.
Facebook Analytics can provide valuable insights into how users interact with your app and how your app is performing overall.
Below I’ll show you how to create a Facebook app and set up Facebook analytics for an app converted with Natively.
If you prefer video content, here’s a tutorial from our Youtube channel - How to set up Facebook analytics for your app, converted with Natively - YouTube
To configure your app to work with Facebook, you need to do the following steps:
- Create a Facebook account (If you didn’t have it before)
- Create a Facebook app.
- Set up the iOS app.
- Set up the Android app.
How to create a Facebook app
Go to My Apps page, and click “Create App” button (top right corner)
Select app type as “None”
Fill out the app name and contact email
The first part is done, now we need to setup iOS and/or Android app(s)
How to set up iOS
Go to “Settings → Basic” page
Scroll down and click “Add platform”, select “iOS” and click “Next”
Enter Bundle ID. It can be found on the Natively platform: Publish → iOS Build → Bundle Identifier
Enter iPhone/iPad Store ID. It can be found on the Natively platform: Publish → iOS Build → App Store App Id (This value is the same for iPhone and iPad apps if you have iPad support enabled)
Click “Save changes”
At the next step, we need to go to the Advanced settings, copy “Client token” and App ID
Paste this value to the Natively platform. Also, do not forget to fill Permission description for iOS.
Click Save, and rebuild your iOS app after all changes!
Important, the App ID and Client Token are the same for iOS and Android. if you have both platforms you can enter it once. But you need to rebuild each app separately.
How to set up Android
Go to “Settings → Basic” page
Scroll down and click “Add platform”, select “Android” and click “Next”
Select Google Play in a list of stores (Natively officially supports only Google Play, you can select other options on your own risk)
At that point, you need to enter a key hash. We will explain in next step how to get it.
To get a key hash value you need:
- Make sure you’ve already uploaded a first build to Google Play developer console.
- Go to Google Play console and navigate to App Page → Setup → App Integrity
- Scroll down and copy SHA-1 certificate fingerprint value
- Navigate to Hex to Base64 | Base64 Encode | Base64 Converter | Base64
- Enter your SHA-1 value and click “Convert Hex to Base64”
- Copy Base64 value
Paste it in the “Key hashes” field
After that, on the same page, you need to enter your Package Name and Class Name
- Package Name: Publish → iOS Build → Bundle Identifier
- Class Name: “com.base.app.Core.JasonViewActivity”
- Click “Save changes”
At the next step, we need to go to the Advanced settings, copy “Client token” and App ID
Paste this value to the Natively platform.
Important, the App ID and Client Token are the same for iOS and Android. if you have both platforms you can enter it once. But you need to rebuild each app separately.
Click Save, and rebuild your Android app after all changes!