{"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":"<?xml encoding=\"utf-8\" ?><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>FB_VERIFY_TOKEN<\/code> should be a random and secure string.<\/p>\n<pre style=\"background: #f4f4f4; padding: 15px; border-left: 5px solid #ccc;\">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>{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>pages_messaging<\/code> (Messaging on behalf of the page)<\/li>\n<li><code>pages_show_list<\/code> (List pages)<\/li>\n<li><code>pages_manage_metadata<\/code> (Register webhook)<\/li>\n<li><code>business_management<\/code><\/li>\n<li><code>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>\n<style>\r\n.lwrp.link-whisper-related-posts{\r\n            \r\n            margin-top: 40px;\nmargin-bottom: 30px;\r\n        }\r\n        .lwrp .lwrp-title{\r\n            \r\n            \r\n        }.lwrp .lwrp-description{\r\n            \r\n            \r\n\r\n        }\r\n        .lwrp .lwrp-list-container{\r\n        }\r\n        .lwrp .lwrp-list-multi-container{\r\n            display: flex;\r\n        }\r\n        .lwrp .lwrp-list-double{\r\n            width: 48%;\r\n        }\r\n        .lwrp .lwrp-list-triple{\r\n            width: 32%;\r\n        }\r\n        .lwrp .lwrp-list-row-container{\r\n            display: flex;\r\n            justify-content: space-between;\r\n        }\r\n        .lwrp .lwrp-list-row-container .lwrp-list-item{\r\n            width: calc(33% - 20px);\r\n        }\r\n        .lwrp .lwrp-list-item:not(.lwrp-no-posts-message-item){\r\n            \r\n            max-width: 150px;\r\n        }\r\n        .lwrp .lwrp-list-item img{\r\n            max-width: 100%;\r\n            height: auto;\r\n            object-fit: cover;\r\n            aspect-ratio: 1 \/ 1;\r\n        }\r\n        .lwrp .lwrp-list-item.lwrp-empty-list-item{\r\n            background: initial !important;\r\n        }\r\n        .lwrp .lwrp-list-item .lwrp-list-link .lwrp-list-link-title-text,\r\n        .lwrp .lwrp-list-item .lwrp-list-no-posts-message{\r\n            \r\n            \r\n            \r\n            \r\n        }@media screen and (max-width: 480px) {\r\n            .lwrp.link-whisper-related-posts{\r\n                \r\n                \r\n            }\r\n            .lwrp .lwrp-title{\r\n                \r\n                \r\n            }.lwrp .lwrp-description{\r\n                \r\n                \r\n            }\r\n            .lwrp .lwrp-list-multi-container{\r\n                flex-direction: column;\r\n            }\r\n            .lwrp .lwrp-list-multi-container ul.lwrp-list{\r\n                margin-top: 0px;\r\n                margin-bottom: 0px;\r\n                padding-top: 0px;\r\n                padding-bottom: 0px;\r\n            }\r\n            .lwrp .lwrp-list-double,\r\n            .lwrp .lwrp-list-triple{\r\n                width: 100%;\r\n            }\r\n            .lwrp .lwrp-list-row-container{\r\n                justify-content: initial;\r\n                flex-direction: column;\r\n            }\r\n            .lwrp .lwrp-list-row-container .lwrp-list-item{\r\n                width: 100%;\r\n            }\r\n            .lwrp .lwrp-list-item:not(.lwrp-no-posts-message-item){\r\n                \r\n                max-width: initial;\r\n            }\r\n            .lwrp .lwrp-list-item .lwrp-list-link .lwrp-list-link-title-text,\r\n            .lwrp .lwrp-list-item .lwrp-list-no-posts-message{\r\n                \r\n                \r\n                \r\n                \r\n            };\r\n        }<\/style>\r\n<div id=\"link-whisper-related-posts-widget\" class=\"link-whisper-related-posts lwrp\">\r\n            <div class=\"lwrp-title\">Related Posts<\/div>    \r\n        <div class=\"lwrp-list-container\">\r\n                                <div class=\"lwrp-list lwrp-list-row-container lwrp-list-double-row\">\r\n                <div class=\"lwrp-list-item\"><a href=\"https:\/\/dps.media\/en\/tiktok-stories-ads-how-to-take-advantage-of-this-new-format\/\" class=\"lwrp-list-link\"><span class=\"lwrp-list-link-title-text\">TikTok Stories Ads: How to leverage this new format<\/span><\/a><\/div><div class=\"lwrp-list-item\"><a href=\"https:\/\/dps.media\/en\/should-you-buy-facebook-fanpage-likes-benefits-harms-seo-effects\/\" class=\"lwrp-list-link\"><span class=\"lwrp-list-link-title-text\">Should You Buy Facebook Fanpage Likes? Benefits &amp; SEO Harms<\/span><\/a><\/div><div class=\"lwrp-list-item\"><a href=\"https:\/\/dps.media\/en\/professional-customer-care-process-at-dps-media\/\" class=\"lwrp-list-link\"><span class=\"lwrp-list-link-title-text\">Professional customer care process at DPS.MEDIA<\/span><\/a><\/div>                <\/div>\r\n                            <div class=\"lwrp-list lwrp-list-row-container lwrp-list-double-row\">\r\n                <div class=\"lwrp-list-item\"><a href=\"https:\/\/dps.media\/en\/the-mystery-of-the-ending-of-the-unlimited-demon-slaying-sword-movie-part-1-is-revealed\/\" class=\"lwrp-list-link\"><span class=\"lwrp-list-link-title-text\">Secrets of the movie Thanh G\u01b0\u01a1m Di\u1ec7t Qu\u1ef7: Infinite Part 1 revealed.<\/span><\/a><\/div><div class=\"lwrp-list-item\"><a href=\"https:\/\/dps.media\/en\/buy-facebook-fanpage-for-online-selling-of-clothes-cosmetics-and-trending-products\/\" class=\"lwrp-list-link\"><span class=\"lwrp-list-link-title-text\">Buy Facebook Fanpage for Online Sales \u2013 Clothing, Cosmetics, Hot Niches<\/span><\/a><\/div><div class=\"lwrp-list-item\"><a href=\"https:\/\/dps.media\/en\/domain-management-dns-configuration-basic-knowledge-for-businesses\/\" class=\"lwrp-list-link\"><span class=\"lwrp-list-link-title-text\">Domain Name Management &amp; DNS Configuration \u2013 Basic Knowledge for Businesses<\/span><\/a><\/div>                <\/div>\r\n                <\/div>\r\n<\/div>","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":4,"href":"https:\/\/dps.media\/en\/wp-json\/wp\/v2\/posts\/35461\/revisions"}],"predecessor-version":[{"id":35467,"href":"https:\/\/dps.media\/en\/wp-json\/wp\/v2\/posts\/35461\/revisions\/35467"}],"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}]}}