Submit a ticket My Tickets
Welcome
Login  Sign up
Open navigation

How to Integrate Facebook Business SDK with your Mobile app

The Facebook Business SDK gives you access to the Facebook suite of business APIs, allowing you to build unique and customized solutions to serve your businesses and clients. In this article, you will find all of the information needed to set up and connect Facebook Business SDK  with your mobile app.

Set up and Integrate Facebook Business SDK with your Mobile app

1. Go to your Facebook developer account and click on Create app

2. Select Business as an app type to ensure you leverage all features, such as Facebook ads tracking.

3. Enter a Display name. Note that It can be anything, but for convenience, you can use your mobile app’s name as configured in the stores. Fill in the rest of the info (app contact email) and create your app.

4. Once you have created the app, copy the App ID and the Display Name of your app:

Navigate to your LearnWorlds school under Mobile App → Publish your app → Add Integrations, activate Facebook Business SDK, and paste the Apple ID and Display Name of your app onto the Facebook App ID field. 

5. On your Facebook app’s page, go to Settings → Advanced and copy the Client token

Then, navigate to your LearnWorlds school under Mobile App → Publish your app → Add Integrations, and paste it onto the Facebook Client Token field.



The following steps require that you already have a published app.


After the app has been created, you will be asked to add products to your app. Make sure you add App Events so that all of the important events, such as downloads, installs, purchases, and other custom events, are being sent to Facebook analytics.  


1. Click on Set up to get started.

2. Click on Quickstart to set up app events for iOS and Android. 

3a. Guide for iOS:

  • In Step 1: Set up your development environment you can keep the default option SDK Swift package manager and click next to proceed.

  • In Step 2:  Configure Your Information Property List, fill in the Bundle ID field. You can find and copy it on Learnworld’s admin tool under Mobile App → Prepare your app → Integrations. After you have filled it in, click Save and Continue.  You can skip the following steps, and you are now ready to go!

If you don’t have a published app yet, you need to enable the Facebook SDK from the Learnworlds admin tool, fill in the required fields, and then proceed to launch the app. Once the app has been published on the App Store, you can return to Learnworld’s admin tool to copy the Bundle ID required in step ( 2 ) and complete the process. If you already have a published app and you want to enable the Facebook SDK, you need to request an update and return to complete the process after the updated app has been published on the App Store.


3b. Guide for Android

  • Skip steps 1, 2, and 3 (Click next to continue).
  • In Step 4: Tell Us about Your Android Project, fill in the Package Name and Default Activity Class Name fields. You can find and copy them on Learnworld’s admin tool under Mobile App → Prepare your app → Integrations. After you have filled them in, click Save and Continue.
  • In Step 5: Add Your Development and Release Key Hashes, fill in the key hash. You can find and copy it on Learnworld’s admin tool under Mobile App → Prepare your app → Integrations. After you have filled that in, click Save and Continue. You are now ready to go!


If you don’t have a published app yet, you need to enable the Facebook SDK from the Learnworlds admin tool,  fill in the required fields, and then proceed to launch the app. Once the app has been published on the Google Play store, you can return to Learnworld’s admin tool to copy the information required in steps ( 4 ) and ( 5 ) and complete the process. If you already have a published app and you want to enable the Facebook SDK, you need to request an update and return to complete the process after the updated app has been published on the PlayStore.


Facebook Supported Events

You can enable the Facebook SDK for your white-label mobile app to send several user events to Facebook analytics. Our app supports Facebook (Android & iOS)  standard events, which are collected automatically. 

 

On top of those events, we also track Learnworlds’ custom events. The following custom events are supported:

 

  • login: user logs in the app
  • logout: user logs out of app
  • signup: user signs up on the app
  • course_purchase: user purchases course
  • course_visited: user visits course
  • reminder_inserted: user adds a learning reminder
  • reminder_removed: user removes a learning reminder
  • reminder_opened: user taps on a learning reminder notification
  • notification_received: user receives a push notification
  • notification_viewed: user opens a push notification
  • guest_mode: user explores the app as a guest
  • app_opened: user opens app
  • guest_mode: user explores app in guest mode
  • account_delete: user requests account deletion
  • download_video_completed: user completed a video download


Read more about Facebook app events here.

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.