Business Apps, available across Facebook surfaces, is where small businesses can go to discover and connect to third-party business apps to easily get set up with business tools at low tech cost in order to grow and achieve their business goals.
Unlike Business Login, because the Business Apps flow is launched from our surfaces, there is an additional step that requires the user to log in to your platform via a pop-up browser to authenticate and select their business to connect (identified by an external_business_id
defined by you). On successful authentication, the user will be redirected back to the flow to complete the onboarding.
If you would like to have your app displayed on our Business Apps surface, you need to build an authentication URL, a Webhook endpoint and get those set up and validated via Developer Panel.
All apps must apply for Integration Review, once your FBE integration is approved, your app will be available to public users.
Note: Business Login can be used as an alternative to Business Apps for authentication. See the documentation on how to use Business Login.
Business Apps launches a flow analogous to Business Login from a Facebook Page surface, Instagram, and Facebook Business Suite. To enable this flow and have your app listed there, you must provide a custom authentication UI that allows the user to select their business on your site and then redirect them back to the Facebook, Instagram, or Facebook Business Suite flow.
https://yourwebsite.com/fbe-auth
redirect_uri
query parameter to the end (this is a redirect URI which may include additional query parameters):
https://yourwebsite.com/fbe-auth?redirect_uri=<an_encoded_redirect_uri_with_query_params>Example — An encoded redirect URI you might get appended in
redirect_uri
query parameter:
https://www.facebook.com/local/dev/transaction_tool_selector/redirect?app_id=<int_value>&app_name=<string_value>&page_id=<int_value>At the end of this step, Facebook loads your authentication URL with the appended
redirect_uri
query parameter encoded that might look like this:
https://yourwebsite.com/fbe-auth?redirect_uri=https%3A%2F%2Fwww.facebook.com%2Flocal%2Fdev%2Ftransaction_tool_selector%2Fredirect%3Fapp_id%3D123%26app_name%3DSample%26page_id%3D456
Important Note: To ensure that you are not sharing any user data with other parties, only redirect to the redirect_uri
if it matches the following regular expression:
https?:\/\/(www\.|m\.|l\.|web\.|business\.)?(\d{4,5}\.od\.)?(business\.)?(facebook|instagram|whatsapp)\.com(\/.*)?
https://www.facebook.com/local/dev/transaction_tool_selector/redirect?app_id=<int_value>&app_name=<string_value>&page_id=<int_value>&extras=<an_encoded_json_string>
Note: When providing an option to create a new account on your platform in your Authentication URL, please ensure that the UI rendered is either 1) mobile-friendly/responsive and/or 2) opens with height/width sufficient to render your partner signup flow correctly (suggested minimum dimensions: 600px by 600px).
To enable a more seamless user experience within Business Apps and better support the creation of new accounts on your platform, you should enable your authentication URL to load in an iframe on a Facebook surface. See the implementation guidelines and post-message specifications in the iframes documentation.
Webhooks allow you to receive real-time HTTP notifications of changes to specific objects in the Facebook Social Graph. For FBE this means that after a user installs or uninstalls FBE using your app (e.g. via Business Apps), you will receive the details for that action via Webhooks.
You should build an endpoint on a secure server that can process requests from Facebook. This is required for all platform partners that want their app available on Business Apps. See the Webhook implementation guide for details about how to build this endpoint.
Once your Webhook endpoint is ready, its setup and validation require that you:
fbe_install
webhook. See the Webhook implementation guide for more details.
The Facebook Business Extension Developer Panel is a product in your Developer App Dashboard. Once your apps are granted FBE capability, you should use the Developer Panel to set up and validate your authentication URL, Webhook endpoint and to add details about what your application offers to a business.
Once your authentication URL is ready, its setup and validation require that you:
redirect_uri
, and does not actually install FBE.
Once your authentication URL and Webhook endpoint were successfully set up and validated on the Developer Panel, you can do end-to-end testing of the onboarding flow, powered by your app, before going live. This can be done directly from Facebook Business Suite or the Facebook Page surface as follows: