{"id":414,"date":"2022-09-05T13:21:46","date_gmt":"2022-09-05T11:21:46","guid":{"rendered":"https:\/\/support.botnation.ai\/manage-several-facebook-pages-on-the-same-messenger-chatbot\/"},"modified":"2026-01-02T16:34:45","modified_gmt":"2026-01-02T15:34:45","slug":"manage-several-facebook-pages-on-the-same-messenger-chatbot","status":"publish","type":"support","link":"https:\/\/botnation.ai\/en\/support\/manage-several-facebook-pages-on-the-same-messenger-chatbot\/","title":{"rendered":"Manage several Facebook pages on the same Messenger chatbot"},"content":{"rendered":"<p>How do I get the ID of the Facebook page I contacted?<\/p>\n\n\n\n<p>If you have connected your BOTNATION chatbot to several Facebook pages you may need to know the ID of the Facebook page you are contacting in order to personalize messages.<\/p>\n\n\n\n<p>This can happen if you have multiple locations that each have their own Facebook page. They have their own Messenger account, however you want to manage a single chatbot for all these establishments while customizing the chat according to the establishment contacted by the user.<br><br>The user\u2019s <a href=\"https:\/\/botnation.ai\/recuperer-un-email-et-un-numero-de-telephone-sur-un-chatbot-facebook-messenger\/\">Messenger account ID is linked to the Facebook<\/a> page ID. This information is available on BOTNATION in the system variable {{BN_MESSENGER_PAGE}} .<\/p>\n\n\n\n<p>You can then perform conditions on this variable {{BN_MESSENGER_PAGE}} as for example below:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img fetchpriority=\"high\" decoding=\"async\" src=\"https:\/\/botnation.ai\/wp-content\/uploads\/2022\/09\/image-42.png.webp\" alt=\"\" class=\"wp-image-416\" width=\"825\" height=\"815\"><\/figure>\n<\/div>\n\n\n<p>You are probably wondering now how to know in advance this identifier without having to perform tests to display the variable.<\/p>\n\n\n\n<p>You have to go to the settings of the concerned Facebook page, you will find this identifier in the \u201cAbout\u201d section, as shown on the picture below.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" src=\"https:\/\/botnation.ai\/wp-content\/uploads\/2022\/09\/image-43.png.webp\" alt=\"\" class=\"wp-image-419\"><\/figure>\n<\/div>\n\n\n<p>The page ID is at the bottom of the \u201cAbout\u201d section.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" src=\"https:\/\/botnation.ai\/wp-content\/uploads\/2022\/09\/image-44.png.webp\" alt=\"\" class=\"wp-image-421\"><\/figure>\n<\/div>\n\n","protected":false},"featured_media":0,"template":"","meta":{"_acf_changed":false},"categorie-support":[193,194,185,171],"class_list":["post-414","support","type-support","status-publish","hentry","categorie-support-facebook-messenger-en","categorie-support-features","categorie-support-fonctionnalites","categorie-support-variables"],"acf":[],"_links":{"self":[{"href":"https:\/\/botnation.ai\/en\/wp-json\/wp\/v2\/support\/414","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/botnation.ai\/en\/wp-json\/wp\/v2\/support"}],"about":[{"href":"https:\/\/botnation.ai\/en\/wp-json\/wp\/v2\/types\/support"}],"wp:attachment":[{"href":"https:\/\/botnation.ai\/en\/wp-json\/wp\/v2\/media?parent=414"}],"wp:term":[{"taxonomy":"categorie-support","embeddable":true,"href":"https:\/\/botnation.ai\/en\/wp-json\/wp\/v2\/categorie-support?post=414"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}