{"id":35461,"date":"2025-12-26T21:14:16","date_gmt":"2025-12-26T14:14:16","guid":{"rendered":"https:\/\/dps.media\/?p=35461"},"modified":"2025-12-26T21:18:02","modified_gmt":"2025-12-26T14:18:02","slug":"facebook-messenger-integration-configuration-for-chatwoot","status":"publish","type":"post","link":"https:\/\/dps.media\/en\/facebook-messenger-integration-configuration-for-chatwoot\/","title":{"rendered":"Facebook Messenger integration configuration for Chatwoot"},"content":{"rendered":"<article><header>\n<p>To use the Facebook channel, you need to create a Facebook app in the developer portal. Below are the detailed setup steps for Self-hosted.<\/p>\n<\/header><hr>\n<section>\n<h2>1. Prerequisites<\/h2>\n<ul>\n<li>Valid Facebook account.<\/li>\n<li>Active Facebook Page.<\/li>\n<\/ul>\n<\/section>\n<section>\n<h2>2. Register Facebook App<\/h2>\n<p>Access <a href=\"https:\/\/developers.facebook.com\/\" target=\"_blank\" rel=\"noopener nofollow\">Facebook Developer Portal<\/a> and click the button <strong>\u201cCreate App\u201d<\/strong>.<\/p>\n<figure>\n<figure><img decoding=\"async\" style=\"width: 100%; height: auto;\" src=\"https:\/\/mintcdn.com\/chatwoot-447c5a93\/qGPxFBLJOb0CiH-G\/self-hosted\/images\/facebook\/facebook-create-app.png?fit=max&auto=format&n=qGPxFBLJOb0CiH-G&q=85&s=4afb1570f2e5f2f5a79661a5e83fd919\" alt=\"Create Facebook App\" title=\"\"><\/figure>\n<\/figure>\n<h3>Setup steps for app type:<\/h3>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li>Select the option <strong>\u201cOther\u201d<\/strong>.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<figure><img decoding=\"async\" style=\"width: 100%; height: auto; margin: 10px 0;\" src=\"https:\/\/mintcdn.com\/chatwoot-447c5a93\/qGPxFBLJOb0CiH-G\/self-hosted\/images\/facebook\/facebook_other_app.png?fit=max&auto=format&n=qGPxFBLJOb0CiH-G&q=85&s=5ebdaffa0d99578c4681798d9e81b0b7\" alt=\"Select type Other\" title=\"\"><\/figure>\n<p>\u00a0<\/p>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li>For app type, select <strong>\u201cBusiness\u201d<\/strong>.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<figure><img decoding=\"async\" style=\"width: 100%; height: auto; margin: 10px 0;\" src=\"https:\/\/mintcdn.com\/chatwoot-447c5a93\/qGPxFBLJOb0CiH-G\/self-hosted\/images\/facebook\/facebook_business.png?fit=max&auto=format&n=qGPxFBLJOb0CiH-G&q=85&s=14c2ac351761f69df0293a9181905039\" alt=\"Select Business App\" title=\"\"><\/figure>\n<p>\u00a0<\/p>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li>Enter basic information such as app name and contact email.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<figure><img decoding=\"async\" style=\"width: 100%; height: auto; margin: 10px 0;\" src=\"https:\/\/mintcdn.com\/chatwoot-447c5a93\/qGPxFBLJOb0CiH-G\/self-hosted\/images\/facebook\/facebook_business_details.png?fit=max&auto=format&n=qGPxFBLJOb0CiH-G&q=85&s=3428088d33abdd74860fa9d974ac83ab\" alt=\"Enter app information\" title=\"\"><\/figure>\n<p>\u00a0<\/p>\n<p>After registration, save <strong>App Id<\/strong> and <strong>App Secret<\/strong> in the settings section for use with Chatwoot.<\/p>\n<figure><img decoding=\"async\" style=\"width: 100%; height: auto;\" src=\"https:\/\/mintcdn.com\/chatwoot-447c5a93\/qGPxFBLJOb0CiH-G\/self-hosted\/images\/facebook\/facebook_app_id.png?fit=max&auto=format&n=qGPxFBLJOb0CiH-G&q=85&s=d64ef05f514cb3d8d915be3a7b4ee4d0\" alt=\"Get App ID and Secret\" title=\"\"><\/figure>\n<p>\u00a0<\/p>\n<\/section>\n<section>\n<h2>3. Configure Environment Variables in Chatwoot<\/h2>\n<p>Update the following values in your configuration file. <code data-no-translation=\"\">FB_VERIFY_TOKEN<\/code> should be a random and secure string.<\/p>\n<pre style=\"background: #f4f4f4; padding: 15px; border-left: 5px solid #ccc;\" data-no-translation=\"\">FB_VERIFY_TOKEN=your_secure_token\nFB_APP_SECRET=your_facebook_app_secret\nFB_APP_ID=your_facebook_app_id<\/pre>\n<p><em>* Don't forget to restart the Chatwoot server after updating.<\/em><\/p>\n<\/section>\n<section>\n<h2>4. Configure Facebook Login<\/h2>\n<p>Add Product <strong>Facebook Login<\/strong> in the app dashboard.<\/p>\n<figure><img decoding=\"async\" style=\"width: 100%; height: auto;\" src=\"https:\/\/mintcdn.com\/chatwoot-447c5a93\/qGPxFBLJOb0CiH-G\/self-hosted\/images\/facebook\/facebook_app_login.png?fit=max&auto=format&n=qGPxFBLJOb0CiH-G&q=85&s=283d0725950afe4d28e32814fba43e79\" alt=\"Add Facebook Login\" title=\"\"><\/figure>\n<p>\u00a0<\/p>\n<p>Enable <strong>Web OAuth Login<\/strong>, <strong>Login with Javascript SDK<\/strong> and enter your domain in the field <strong>Allowed Domains<\/strong>.<\/p>\n<figure><img decoding=\"async\" style=\"width: 100%; height: auto;\" src=\"https:\/\/mintcdn.com\/chatwoot-447c5a93\/qGPxFBLJOb0CiH-G\/self-hosted\/images\/facebook\/facebook_sdk_login.png?fit=max&auto=format&n=qGPxFBLJOb0CiH-G&q=85&s=f35ade876b39f421770c337e221b04fb\" alt=\"Configure SDK Login\" title=\"\"><\/figure>\n<p>\u00a0<\/p>\n<\/section>\n<section>\n<h2>5. Set up Messenger and Webhook<\/h2>\n<p>Add the domain where Chatwoot is installed to <strong>App Domain<\/strong> in the general settings section.<\/p>\n<figure><img decoding=\"async\" style=\"width: 100%; height: auto;\" src=\"https:\/\/mintcdn.com\/chatwoot-447c5a93\/qGPxFBLJOb0CiH-G\/self-hosted\/images\/facebook\/facebook_app_domain.png?fit=max&auto=format&n=qGPxFBLJOb0CiH-G&q=85&s=eb9ffd310cde30181c1e44202d712fc9\" alt=\"Configure App Domain\" title=\"\"><\/figure>\n<p>\u00a0<\/p>\n<p>Add Product <strong>Messenger<\/strong> and configure <strong>Callback URL<\/strong>.<\/p>\n<figure><img decoding=\"async\" style=\"width: 100%; height: auto; margin-bottom: 10px;\" src=\"https:\/\/mintcdn.com\/chatwoot-447c5a93\/qGPxFBLJOb0CiH-G\/self-hosted\/images\/facebook\/facebook_messenger_product.png?fit=max&auto=format&n=qGPxFBLJOb0CiH-G&q=85&s=bc86a99f579b81307f0f768560210ac9\" alt=\"Add Messenger Product\" title=\"\"><\/figure>\n<p>\u00a0<\/p>\n<p>Fill in the Callback URL in the format: <code data-no-translation=\"\">{domain_cua_ban}\/bot<\/code> and enter the corresponding Verify token.<\/p>\n<figure><img decoding=\"async\" style=\"width: 100%; height: auto;\" src=\"https:\/\/mintcdn.com\/chatwoot-447c5a93\/qGPxFBLJOb0CiH-G\/self-hosted\/images\/facebook\/facebook_callback_url.png?fit=max&auto=format&n=qGPxFBLJOb0CiH-G&q=85&s=15acb2a12b01ff67398357d5ec6a1177\" alt=\"Configure Callback URL\" title=\"\"><\/figure>\n<p>\u00a0<\/p>\n<\/section>\n<section style=\"background-color: #fff3cd; padding: 15px; border: 1px solid #ffeeba; border-radius: 4px; margin: 20px 0;\"><strong>Warning:<\/strong> Ensure the Facebook app subscription version is <strong>17.0<\/strong>. Update in the Webhooks options if necessary.<\/section>\n<section>\n<h2>6. Go to Production<\/h2>\n<p>Before going live, you need to request <strong>Advanced Access<\/strong> for the following permissions:<\/p>\n<ul>\n<li><code data-no-translation=\"\">pages_messaging<\/code> (Messaging on behalf of the page)<\/li>\n<li><code data-no-translation=\"\">pages_show_list<\/code> (List pages)<\/li>\n<li><code data-no-translation=\"\">pages_manage_metadata<\/code> (Register webhook)<\/li>\n<li><code data-no-translation=\"\">business_management<\/code><\/li>\n<li><code data-no-translation=\"\">pages_read_engagement<\/code> (Read user profile data)<\/li>\n<\/ul>\n<figure><img decoding=\"async\" style=\"width: 100%; height: auto;\" src=\"https:\/\/mintcdn.com\/chatwoot-447c5a93\/qGPxFBLJOb0CiH-G\/self-hosted\/images\/facebook\/fb_api_version.png?fit=max&auto=format&n=qGPxFBLJOb0CiH-G&q=85&s=3557a9afbefe18dec0f35e3e28136f48\" alt=\"API Version\" title=\"\"><\/figure>\n<p>\u00a0<\/p>\n<\/section>\n<\/article>","protected":false},"excerpt":{"rendered":"<p>To use the Facebook channel, you need to create a Facebook app in the developer portal. Below are the detailed setup steps for the Self-hosted version. 1. Prerequisites Valid Facebook account. Active Facebook Page. 2. Register Facebook App Access Facebook Developer [\u2026]<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-35461","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"acf":[],"rankmath_keywords":{"primary":"","secondary":[""]},"yoast_keywords":{"primary":"","secondary":[]},"yoast_focuskw":"","rankmath_focuskw":"","seo_keywords":{"primary":"","secondary":[""]},"_links":{"self":[{"href":"https:\/\/dps.media\/en\/wp-json\/wp\/v2\/posts\/35461","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dps.media\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dps.media\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dps.media\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dps.media\/en\/wp-json\/wp\/v2\/comments?post=35461"}],"version-history":[{"count":0,"href":"https:\/\/dps.media\/en\/wp-json\/wp\/v2\/posts\/35461\/revisions"}],"wp:attachment":[{"href":"https:\/\/dps.media\/en\/wp-json\/wp\/v2\/media?parent=35461"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dps.media\/en\/wp-json\/wp\/v2\/categories?post=35461"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dps.media\/en\/wp-json\/wp\/v2\/tags?post=35461"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}