Natively Docs
Join our community 🔥
  • 👩‍🚀Getting Started
    • What is Natively?
    • Why Natively?
    • FAQ
    • Create Your First App
  • 🚀Natively Platform
    • 🚉Releases
    • 🖌️Appearance
      • 😼App Icon
      • 📱Loading Screen
      • 📱Error Screen
      • 🎨Style
    • 🎬Preview
    • ⭐Features
      • 🛳️Bottom Bar
      • 🚇Deeplinks
        • 🔥Firebase
        • 🔗Universal Links
        • 🌱Branch.io
      • 📍Geolocation
      • 🔔Notifications
        • 📲OneSignal Notifications
        • 🔥Firebase Notifications (Advanced)
      • 📒Contacts
      • 👩‍🎨Social Auth
        • 🍏Sign In with Apple
      • 💟HealthKit
      • 💰Purchases
      • 🤑Admob
      • 💳NFC
      • 📷Camera
      • 📂Photo Library
      • 🎤Microphone
      • 📈Analytics
        • 🕊️AppsFlyer
        • 😛Facebook
    • 🚚Publish
      • 🍏iOS App
      • 🤖Android App
    • ⚙️Settings
    • 🙈Subscription Plans
  • Guides
    • 🧋Integration (Native Features)
      • 🏅How to get started?
      • ℹ️Device
      • ℹ️Browser Info
      • 🛳️Bottom Bar
      • ✂️Clipboard
      • 🚦Push Notifications - OneSignal
      • 🚦Push Notifications - Firebase (Advanced)
      • 📍Geolocation
      • 📦App Storage
      • 🗝️Biometrics & Credentials
      • 📧Native SMS/Email
      • 📅Native Date Picker
      • 📸Native Camera
      • 🎙️Native Audio Recorder
      • 🈁Native Scanner (QR/Barcode)
      • 📔Contacts
      • 🍏Apple Sign In
      • ❤️HealthKit
      • 💸In-App Purchases
      • 🤑Admob
      • 💳NFC
      • 🥑Show Toast/Banner
      • ⏳Show/Hide Loading Screen
      • 🥑Haptic Feedback
      • 🖼️Share Media/Files
      • 📱Open an external App/URL
      • ✍️Request User's review
      • ↔️getInsets
      • 🎨Control Style & Colors
    • 🔍Troubleshooting
    • 🐈Setup RevenueCat App
    • 🚑Setup Admob App
    • 🚥Setup One Signal App
    • 🧑‍🤝‍🧑Setup website Universal Links (Deeplinks)
    • 🍕Testing & Submitting your app
    • 🔑Generate iOS Push Key (NEW)
    • 🔑Generate iOS Push Certificate (Legacy)
    • 🤝Affiliate program
    • 📕For Partners: Natively Brand Book.
Powered by GitBook
On this page
  • How to create a Facebook app?
  • How to set up iOS?
  • How to set up Android?

Was this helpful?

  1. Natively Platform
  2. Features
  3. Analytics

Facebook

PreviousAppsFlyerNextPublish

Last updated 3 months ago

Was this helpful?

Facebook Analytics is the data and tools you need to track your brand's performance on the world's most popular social network. Tracking Facebook analytics helps you understand your past performance and tweak your future strategy.

To configure your app to work with Facebook, you need to do the following steps:

  1. Create a Facebook account (If you didn't have it before)

  2. a Facebook app.

  3. the iOS app.

  4. the Android app.

How to create a Facebook app?

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

Click "Save changes"

At the next step, we need to go to the Advanced settings, copy "Client token" and App ID

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:

  1. Make sure you've already uploaded a first build to Google Play developer console.

  2. Go to Google Play console and navigate to App Page -> Setup -> App Integrity

  3. Scroll down and copy SHA-1 certificate fingerprint value (Upload & Publish keys certificates)

  1. Enter your SHA-1 value and click "Convert Hex to Base64"

  2. Copy Base64 value

Do the same for 2nd ^

Paste 2 values in the "Key hashes" field

After that, on the same page, you need to enter your Package Name and Class Name

  1. Package Name: Publish -> Android Build -> Bundle Identifier

  2. Class Name: for Natively 2.0 "com.base.app.Core.JasonViewActivity" or for Natively 3.0 "{your bundle id}.MainActivity" e.g: "com.AxdfrerA.natively.MainActivity"

  3. 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!

Go to page, and click "Create App" button (top right corner)

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 )

Paste this value to the Natively platform. Also, do not forget to fill for iOS.

Navigate to

🚀
⭐
📈
😛
My Apps
Permission description
https://base64.guru/converter/encode/hex
Create
Set up
Set up
enabled