{"id":68273,"date":"2016-12-16T16:40:45","date_gmt":"2016-12-16T16:40:45","guid":{"rendered":"http:\/\/webkul.com\/blog\/?p=68273"},"modified":"2016-12-16T16:40:45","modified_gmt":"2016-12-16T16:40:45","slug":"facebook-messenger-chat-bot-php","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/facebook-messenger-chat-bot-php\/","title":{"rendered":"Facebook messenger chat bot in PHP"},"content":{"rendered":"<p><strong>Facebook messenger chat <\/strong><strong>bot<\/strong><strong>:<\/strong>\u00a0Facebook has introduced it&#8217;s\u00a0bot\u00a0platform for messenger, that provides a new platform for individuals or business so that they can interact\u00a0with their customers faster and in a very interactive\u00a0way.<\/p>\n<p><strong>What is chat bot:\u00a0<\/strong>A computer program designed to simulate a conversation with human users \u00a0especially over the internet. It has functionality ranges from normal interaction to having highly artificial intelligence.<\/p>\n<p><strong>Requirement to start creating bot:\u00a0<\/strong>In a basic requirement, you must have three things<\/p>\n<ul>\n<li>Website\u00a0or webpage hosted with an SSL certificate, else Facebook will not accept your url for the request and response to the messenger.<\/li>\n<li>Facebook app<\/li>\n<li>Facebook page<\/li>\n<\/ul>\n<p>Let&#8217;s create a chat bot\u00a0using the Facebook\u00a0messenger platform.<\/p>\n<p>First of all, create a Facebook\u00a0page, visit\u00a0<em><a href=\"https:\/\/www.facebook.com\/pages\/create\">https:\/\/www.facebook.com\/pages\/create<\/a>\u00a0<\/em>and you&#8217;ll see options as below screenshot.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-68286\" src=\"http:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/12\/01.png\" alt=\"Facebook create page\" width=\"901\" height=\"634\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/12\/01.png 901w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/12\/01-250x176.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/12\/01-300x211.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/12\/01-768x540.png 768w\" sizes=\"(max-width: 901px) 100vw, 901px\" loading=\"lazy\" \/><\/p>\n<p>You can select any category as per your business or individual choice. After selecting a\u00a0category, you&#8217;ll asked few more options, after putting all the required information on the next screen, your Facebook\u00a0page will be created as below screenshot.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-68288\" src=\"http:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/12\/02.png\" alt=\"Facebook page\" width=\"942\" height=\"617\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/12\/02.png 942w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/12\/02-250x164.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/12\/02-300x196.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/12\/02-768x503.png 768w\" sizes=\"(max-width: 942px) 100vw, 942px\" loading=\"lazy\" \/><\/p>\n<p>Your page will look like as above screenshot after few more setting, in the page setting options. Now we have a Facebook page, now we need an app to connect this page to the messenger platform and your desired website or web page.<\/p>\n<p>To create an app, go to\u00a0<a href=\"https:\/\/developers.facebook.com\/apps\">https:\/\/developers.facebook.com\/apps<\/a> and hit the button labeled\u00a0<strong>add a new app\u00a0<\/strong>and you&#8217;ll get a pop window which will ask for some details as below screenshot.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-68290\" src=\"http:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/12\/03.png\" alt=\"Facebook adding app\" width=\"1065\" height=\"641\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/12\/03.png 1065w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/12\/03-250x150.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/12\/03-300x181.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/12\/03-768x462.png 768w\" sizes=\"(max-width: 1065px) 100vw, 1065px\" loading=\"lazy\" \/><\/p>\n<p>After hitting the button <strong>create App ID<\/strong>, your app will be created and you&#8217;ll be redirected to the app&#8217;s dashboard\u00a0and you&#8217;ll see something like below screenshot.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-large wp-image-68295\" src=\"http:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/12\/04-1200x491.png\" alt=\"Facebook app dashboard\" width=\"1200\" height=\"491\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/12\/04-1200x491.png 1200w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/12\/04-250x102.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/12\/04-300x123.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/12\/04-768x314.png 768w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/12\/04.png 1280w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" loading=\"lazy\" \/><\/p>\n<p>Now, click on the <strong>add product\u00a0<\/strong>button to add messenger to your app. After clicking <strong>add product\u00a0<\/strong>button, you&#8217;ll see list of products, search for messenger and click on the <strong>get started<\/strong> button. On the next\u00a0page, you&#8217;ll have to do two things, first is,\u00a0generate token for your earlier created Facebook page and the second is, \u00a0setup of webhook, which is your website&#8217;s or webpage&#8217;s url.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-68298\" src=\"http:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/12\/05.png\" alt=\"Token and webhook Setup\" width=\"1196\" height=\"438\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/12\/05.png 1196w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/12\/05-250x92.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/12\/05-300x110.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/12\/05-768x281.png 768w\" sizes=\"(max-width: 1196px) 100vw, 1196px\" loading=\"lazy\" \/><\/p>\n<p>After selecting the desired page, you&#8217;ll get access token to that page and this token will be used as security token between your web application and facebook\u00a0application. Now click on the <strong>setup webhooks<\/strong> button and fill the form, put url and any\u00a0randon\u00a0string that suits to your business as I&#8217;ve given <strong>webkul_fb_shopbot<\/strong>, which will be further used to verify your given url and check all the desired options whatever you want and click on <strong>verify and save<\/strong> button, it will hit to your url for verification.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-large wp-image-68300\" src=\"http:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/12\/06-1200x635.png\" alt=\"06\" width=\"1200\" height=\"635\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/12\/06-1200x635.png 1200w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/12\/06-250x132.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/12\/06-300x159.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/12\/06-768x406.png 768w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/12\/06.png 1213w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" loading=\"lazy\" \/><\/p>\n<p>Put the code as below screenshot and it will verify to your webhook\u00a0url and always hit this url when any customer will chat with the page.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-68309\" src=\"http:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/12\/07.png\" alt=\"php code to verify webhook\" width=\"878\" height=\"223\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/12\/07.png 878w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/12\/07-250x63.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/12\/07-300x76.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/12\/07-768x195.png 768w\" sizes=\"(max-width: 878px) 100vw, 878px\" loading=\"lazy\" \/><\/p>\n<p>For any further support, please mail us at support@webkul.com<\/p>\n<p>Thanks<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Facebook messenger chat bot:\u00a0Facebook has introduced it&#8217;s\u00a0bot\u00a0platform for messenger, that provides a new platform for individuals or business so that they can interact\u00a0with their customers faster and in a very interactive\u00a0way. What is chat bot:\u00a0A computer program designed to simulate a conversation with human users \u00a0especially over the internet. It has functionality ranges from normal <a href=\"https:\/\/webkul.com\/blog\/facebook-messenger-chat-bot-php\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":23,"featured_media":40972,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[400,1750,5,13],"tags":[4179,376,4180,4181,235,4178,4182,4176,4183,4177],"class_list":["post-68273","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-chat-2","category-chat-system","category-facebook","category-php","tag-bot","tag-chat","tag-chat-bot","tag-chatbot","tag-facebook-2","tag-facebook-messenger","tag-facebook-messenger-chat-bot","tag-facebook-messenger-chat-bot-in-php","tag-facebook-messenger-chat-bot-using-php","tag-messenger"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Facebook messenger chat bot in PHP - Webkul Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/webkul.com\/blog\/facebook-messenger-chat-bot-php\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Facebook messenger chat bot in PHP - Webkul Blog\" \/>\n<meta property=\"og:description\" content=\"Facebook messenger chat bot:\u00a0Facebook has introduced it&#8217;s\u00a0bot\u00a0platform for messenger, that provides a new platform for individuals or business so that they can interact\u00a0with their customers faster and in a very interactive\u00a0way. What is chat bot:\u00a0A computer program designed to simulate a conversation with human users \u00a0especially over the internet. It has functionality ranges from normal [...]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/facebook-messenger-chat-bot-php\/\" \/>\n<meta property=\"og:site_name\" content=\"Webkul Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webkul\/\" \/>\n<meta property=\"article:published_time\" content=\"2016-12-16T16:40:45+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Code-Snippet.png\" \/>\n\t<meta property=\"og:image:width\" content=\"825\" \/>\n\t<meta property=\"og:image:height\" content=\"260\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Avneesh Kumar\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webkul\" \/>\n<meta name=\"twitter:site\" content=\"@webkul\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Avneesh Kumar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/facebook-messenger-chat-bot-php\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/facebook-messenger-chat-bot-php\/\"},\"author\":{\"name\":\"Avneesh Kumar\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/044b2928fe042b5059bb617e34cd39f9\"},\"headline\":\"Facebook messenger chat bot in PHP\",\"datePublished\":\"2016-12-16T16:40:45+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/facebook-messenger-chat-bot-php\/\"},\"wordCount\":486,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/facebook-messenger-chat-bot-php\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Code-Snippet.png\",\"keywords\":[\"bot\",\"chat\",\"chat-bot\",\"chatbot\",\"facebook\",\"facebook messenger\",\"Facebook messenger chat bot\",\"Facebook messenger chat bot in PHP\",\"Facebook messenger chat bot using PHP\",\"messenger\"],\"articleSection\":[\"Chat\",\"Chat System\",\"Facebook\",\"php\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/facebook-messenger-chat-bot-php\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/facebook-messenger-chat-bot-php\/\",\"url\":\"https:\/\/webkul.com\/blog\/facebook-messenger-chat-bot-php\/\",\"name\":\"Facebook messenger chat bot in PHP - Webkul Blog\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/facebook-messenger-chat-bot-php\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/facebook-messenger-chat-bot-php\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Code-Snippet.png\",\"datePublished\":\"2016-12-16T16:40:45+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/facebook-messenger-chat-bot-php\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/facebook-messenger-chat-bot-php\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/facebook-messenger-chat-bot-php\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Code-Snippet.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Code-Snippet.png\",\"width\":825,\"height\":260},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/facebook-messenger-chat-bot-php\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Facebook messenger chat bot in PHP\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webkul.com\/blog\/#website\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"name\":\"Webkul Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webkul.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webkul.com\/blog\/#organization\",\"name\":\"WebKul Software Private Limited\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"width\":380,\"height\":380,\"caption\":\"WebKul Software Private Limited\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webkul\/\",\"https:\/\/x.com\/webkul\",\"https:\/\/www.instagram.com\/webkul\/\",\"https:\/\/www.linkedin.com\/company\/webkul\",\"https:\/\/www.youtube.com\/user\/webkul\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/044b2928fe042b5059bb617e34cd39f9\",\"name\":\"Avneesh Kumar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/5903755481804b5f657313a20e78c284e9af738c131f2df2c4bd1dc129753462?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/5903755481804b5f657313a20e78c284e9af738c131f2df2c4bd1dc129753462?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Avneesh Kumar\"},\"sameAs\":[\"http:\/\/webkul.com\"],\"url\":\"https:\/\/webkul.com\/blog\/author\/avneesh\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Facebook messenger chat bot in PHP - Webkul Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/webkul.com\/blog\/facebook-messenger-chat-bot-php\/","og_locale":"en_US","og_type":"article","og_title":"Facebook messenger chat bot in PHP - Webkul Blog","og_description":"Facebook messenger chat bot:\u00a0Facebook has introduced it&#8217;s\u00a0bot\u00a0platform for messenger, that provides a new platform for individuals or business so that they can interact\u00a0with their customers faster and in a very interactive\u00a0way. What is chat bot:\u00a0A computer program designed to simulate a conversation with human users \u00a0especially over the internet. It has functionality ranges from normal [...]","og_url":"https:\/\/webkul.com\/blog\/facebook-messenger-chat-bot-php\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2016-12-16T16:40:45+00:00","og_image":[{"width":825,"height":260,"url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Code-Snippet.png","type":"image\/png"}],"author":"Avneesh Kumar","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Avneesh Kumar","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/facebook-messenger-chat-bot-php\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/facebook-messenger-chat-bot-php\/"},"author":{"name":"Avneesh Kumar","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/044b2928fe042b5059bb617e34cd39f9"},"headline":"Facebook messenger chat bot in PHP","datePublished":"2016-12-16T16:40:45+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/facebook-messenger-chat-bot-php\/"},"wordCount":486,"commentCount":1,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/facebook-messenger-chat-bot-php\/#primaryimage"},"thumbnailUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Code-Snippet.png","keywords":["bot","chat","chat-bot","chatbot","facebook","facebook messenger","Facebook messenger chat bot","Facebook messenger chat bot in PHP","Facebook messenger chat bot using PHP","messenger"],"articleSection":["Chat","Chat System","Facebook","php"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/facebook-messenger-chat-bot-php\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/facebook-messenger-chat-bot-php\/","url":"https:\/\/webkul.com\/blog\/facebook-messenger-chat-bot-php\/","name":"Facebook messenger chat bot in PHP - Webkul Blog","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/facebook-messenger-chat-bot-php\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/facebook-messenger-chat-bot-php\/#primaryimage"},"thumbnailUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Code-Snippet.png","datePublished":"2016-12-16T16:40:45+00:00","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/facebook-messenger-chat-bot-php\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/facebook-messenger-chat-bot-php\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/facebook-messenger-chat-bot-php\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Code-Snippet.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Code-Snippet.png","width":825,"height":260},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/facebook-messenger-chat-bot-php\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Facebook messenger chat bot in PHP"}]},{"@type":"WebSite","@id":"https:\/\/webkul.com\/blog\/#website","url":"https:\/\/webkul.com\/blog\/","name":"Webkul Blog","description":"","publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webkul.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webkul.com\/blog\/#organization","name":"WebKul Software Private Limited","url":"https:\/\/webkul.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","width":380,"height":380,"caption":"WebKul Software Private Limited"},"image":{"@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webkul\/","https:\/\/x.com\/webkul","https:\/\/www.instagram.com\/webkul\/","https:\/\/www.linkedin.com\/company\/webkul","https:\/\/www.youtube.com\/user\/webkul\/"]},{"@type":"Person","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/044b2928fe042b5059bb617e34cd39f9","name":"Avneesh Kumar","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/5903755481804b5f657313a20e78c284e9af738c131f2df2c4bd1dc129753462?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5903755481804b5f657313a20e78c284e9af738c131f2df2c4bd1dc129753462?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Avneesh Kumar"},"sameAs":["http:\/\/webkul.com"],"url":"https:\/\/webkul.com\/blog\/author\/avneesh\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/68273","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/users\/23"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=68273"}],"version-history":[{"count":2,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/68273\/revisions"}],"predecessor-version":[{"id":68310,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/68273\/revisions\/68310"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media\/40972"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=68273"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=68273"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=68273"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}