{"id":1786,"date":"2013-05-27T07:26:06","date_gmt":"2013-05-27T07:26:06","guid":{"rendered":"http:\/\/webkul.com\/blog\/?p=1786"},"modified":"2013-05-27T07:26:06","modified_gmt":"2013-05-27T07:26:06","slug":"generate-automatic-access-token-with-curl","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/generate-automatic-access-token-with-curl\/","title":{"rendered":"Generate automatic access token with Curl"},"content":{"rendered":"<p>Automatic Generate Facebook access token you just need the client app id, secret key and short time access token to generating long time access token.<\/p>\n<p>Here is the code :<\/p>\n<pre class=\"brush:php\">$ch1 = curl_init();                   \/\/this part we set up curl \r\ncurl_setopt($ch1, CURLOPT_URL, 'https:\/\/graph.facebook.com\/oauth\/access_token?client_id='.$wkapiid.'&amp;client_secret='.$wkappsecret.'&amp;grant_type=fb_exchange_token&amp;fb_exchange_token='.$accesstoken.'');\r\n\r\ncurl_setopt($ch1, CURLOPT_RETURNTRANSFER, 1);\r\ncurl_setopt($ch1, CURLOPT_TIMEOUT, 15);\r\ncurl_setopt($ch1, CURLOPT_SSL_VERIFYHOST, 0);\r\ncurl_setopt($ch1, CURLOPT_FOLLOWLOCATION, true);\r\n$longaccesstoken = curl_exec($ch1);\r\ncurl_close($ch1);\r\nheader('Content-type: application\/xml');  \/\/specify as xml to not display as one long string\r\n\r\n$data=json_decode($longaccesstoken);<\/pre>\n<p>This is the full code which is used to generate access token for each time just before 2 month.<\/p>\n<pre class=\"brush:php\">jimport( 'joomla.filesystem.file' );\r\njimport( 'joomla.filesystem.stream' );\r\n\r\nfunction getName($file) {\r\n        $slash = strrpos($file, DS);\r\n        if ($slash !== false) {\r\n                return substr($file, $slash + 1);\r\n        } else {\r\n                return $file;\r\n        }\r\n}\r\n\r\n$wkdates = getdate();\r\n\r\n$searchdir = \"modules\/mod_facebookwall\/elements\";\r\n\r\n$filestext = glob($searchdir.'\/*.txt', GLOB_BRACE);\r\n\r\n$filename = getName(JPATH_ROOT.\"\/\".$filestext[0]);\r\n\r\n$accesstokenfinal = file_get_contents(JPATH_ROOT.\"\/\".$filestext[0]);\r\n\r\n$filetime = explode(\".txt\", $filename);\r\n\r\n$filerealtime = $filetime[0];\r\n\r\nif($filerealtime &lt; $wkdates[0])\r\n{\t  \r\n\r\n\tif($filerealtime==0){\r\n   \t\t$ch1 = curl_init();                   \/\/this part we set up curl \r\n\t\tcurl_setopt($ch1, CURLOPT_URL, 'https:\/\/graph.facebook.com\/oauth\/access_token?client_id='.$wkapiid.'&amp;client_secret='.$wkappsecret.'&amp;grant_type=fb_exchange_token&amp;fb_exchange_token='.$accesstoken.'');\r\n\r\n\t\tcurl_setopt($ch1, CURLOPT_RETURNTRANSFER, 1);\r\n\t\tcurl_setopt($ch1, CURLOPT_TIMEOUT, 15);\r\n\t\tcurl_setopt($ch1, CURLOPT_SSL_VERIFYHOST, 0);\r\n\t\tcurl_setopt($ch1, CURLOPT_FOLLOWLOCATION, true);\r\n\t\t$longaccesstoken = curl_exec($ch1);\r\n\t\tcurl_close($ch1);\r\n\t\theader('Content-type: application\/xml');  \/\/specify as xml to not display as one long string\r\n                $data=json_decode($longaccesstoken);\r\n\r\n\t\tif($data-&gt;error-&gt;code==190){\r\n\t\t\techo \"Error validating access token, Please Give right Accesstoken for that APPS \";\r\n\t\t}\r\n\t\telseif ($data-&gt;error-&gt;code==101) {\r\n\t\t\techo \"Error validating application, Please Give right API ID for that APPS \";\r\n\t\t}\r\n\t\telseif ($data-&gt;error-&gt;code==1) {\r\n\t\t\techo \"Error validating client secret, Please Give right Secret Key for that APPS \";\r\n\t\t}\r\n\t\telse{\r\n\t\t\t$stripacceess = explode(\"access_token=\", $longaccesstoken);\r\n\t\t\t$finalstripacees = explode(\"&amp;expires=\", $stripacceess[1]);\t\r\n\t\t\t$accesstokenfinal = $finalstripacees[0];\r\n\t\t\t$explodedate = $finalstripacees[1];\r\n\t\t\t$changefiletime = $wkdates[0] + $explodedate -2000;\r\n\t\t\t$tempfilepath = JPATH_ROOT . DS . 'modules' . DS . 'mod_facebookwall'. DS . 'elements';\r\n\t\t\t$fileIniName = JPATH_ROOT.\"\/modules\/mod_facebookwall\/elements\/\".$filerealtime.\".txt\";\r\n\t\t\t$fileChangeName = JPATH_ROOT.\"\/modules\/mod_facebookwall\/elements\/\".$changefiletime.\".txt\";\r\n\t\t\tfile_put_contents(JPATH_ROOT.\"\/\".$filestext[0], $accesstokenfinal);\r\n\t\t\trename($fileIniName, $fileChangeName);\r\n\t\t}\t\t\r\n\r\n   \t}\r\n   \telse{   \t\t\r\n   \t\t$ch = curl_init();                   \/\/this part we set up curl \r\n        curl_setopt($ch, CURLOPT_URL, 'https:\/\/graph.facebook.com\/oauth\/access_token?client_id='.$wkapiid.'&amp;client_secret='.$wkappsecret.'&amp;grant_type=fb_exchange_token&amp;fb_exchange_token='.$accesstokenfinal.'');\r\n\r\n        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\r\n        curl_setopt($ch, CURLOPT_TIMEOUT, 15);\r\n        curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);\r\n        curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);\r\n        $longaccesstoken = curl_exec($ch);\r\n        curl_close($ch);\r\n        header('Content-type: application\/xml');  \/\/specify as xml to not display as one long string\r\n\r\n        $data=json_decode($longaccesstoken);\r\n\r\n\t\tif($data-&gt;error-&gt;code==190){\r\n\t\t\techo \"Error validating access token, Please Give right Accesstoken for that APPS \";\r\n\t\t}\r\n\t\telseif ($data-&gt;error-&gt;code==101) {\r\n\t\t\techo \"Error validating application, Please Give right API ID for that APPS \";\r\n\t\t}\r\n\t\telseif ($data-&gt;error-&gt;code==1) {\r\n\t\t\techo \"Error validating client secret, Please Give right Secret Key for that APPS \";\r\n\t\t}\r\n\t\telse{\r\n\t\t\t$stripacceess = explode(\"access_token=\", $longaccesstoken);\r\n\t\t\t$finalstripacees = explode(\"&amp;expires=\", $stripacceess[1]);\t\r\n\t\t\t$accesstokenfinal = $finalstripacees[0];\r\n\t\t\t$explodedate = $finalstripacees[1];\r\n\t\t\t$changefiletime = $wkdates[0] + $explodedate -2000;\r\n\t\t\t$tempfilepath = JPATH_ROOT . DS . 'modules' . DS . 'mod_facebookwall'. DS . 'elements';\r\n\t\t\t$fileIniName = JPATH_ROOT.\"\/modules\/mod_facebookwall\/elements\/\".$filerealtime.\".txt\";\r\n\t\t\t$fileChangeName = JPATH_ROOT.\"\/modules\/mod_facebookwall\/elements\/\".$changefiletime.\".txt\";\r\n\t\t\tfile_put_contents(JPATH_ROOT.\"\/\".$filestext[0], $accesstokenfinal);\r\n\t\t\trename($fileIniName, $fileChangeName);\r\n\t\t}\r\n\r\n   \t}\r\n\r\n}<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Automatic Generate Facebook access token you just need the client app id, secret key and short time access token to generating long time access token. Here is the code : $ch1 = curl_init(); \/\/this part we set up curl curl_setopt($ch1, CURLOPT_URL, &#8216;https:\/\/graph.facebook.com\/oauth\/access_token?client_id=&#8217;.$wkapiid.&#8217;&amp;client_secret=&#8217;.$wkappsecret.&#8217;&amp;grant_type=fb_exchange_token&amp;fb_exchange_token=&#8217;.$accesstoken.&#8221;); curl_setopt($ch1, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch1, CURLOPT_TIMEOUT, 15); curl_setopt($ch1, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($ch1, CURLOPT_FOLLOWLOCATION, true); $longaccesstoken <a href=\"https:\/\/webkul.com\/blog\/generate-automatic-access-token-with-curl\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,4,13,234],"tags":[],"class_list":["post-1786","post","type-post","status-publish","format-standard","hentry","category-facebook","category-joomla-2","category-php","category-social-media"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Generate automatic access token with Curl - 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\/generate-automatic-access-token-with-curl\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Generate automatic access token with Curl - Webkul Blog\" \/>\n<meta property=\"og:description\" content=\"Automatic Generate Facebook access token you just need the client app id, secret key and short time access token to generating long time access token. Here is the code : $ch1 = curl_init(); \/\/this part we set up curl curl_setopt($ch1, CURLOPT_URL, &#039;https:\/\/graph.facebook.com\/oauth\/access_token?client_id=&#039;.$wkapiid.&#039;&amp;client_secret=&#039;.$wkappsecret.&#039;&amp;grant_type=fb_exchange_token&amp;fb_exchange_token=&#039;.$accesstoken.&#039;&#039;); curl_setopt($ch1, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch1, CURLOPT_TIMEOUT, 15); curl_setopt($ch1, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($ch1, CURLOPT_FOLLOWLOCATION, true); $longaccesstoken [...]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/generate-automatic-access-token-with-curl\/\" \/>\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=\"2013-05-27T07:26:06+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-og.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Sandeep\" \/>\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=\"Sandeep\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/generate-automatic-access-token-with-curl\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/generate-automatic-access-token-with-curl\/\"},\"author\":{\"name\":\"Sandeep\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/53c1b6c4937da7467b0493e192cba16e\"},\"headline\":\"Generate automatic access token with Curl\",\"datePublished\":\"2013-05-27T07:26:06+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/generate-automatic-access-token-with-curl\/\"},\"wordCount\":53,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"articleSection\":[\"Facebook\",\"Joomla\",\"php\",\"social media\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/generate-automatic-access-token-with-curl\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/generate-automatic-access-token-with-curl\/\",\"url\":\"https:\/\/webkul.com\/blog\/generate-automatic-access-token-with-curl\/\",\"name\":\"Generate automatic access token with Curl - Webkul Blog\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"datePublished\":\"2013-05-27T07:26:06+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/generate-automatic-access-token-with-curl\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/generate-automatic-access-token-with-curl\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/generate-automatic-access-token-with-curl\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Generate automatic access token with Curl\"}]},{\"@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\/53c1b6c4937da7467b0493e192cba16e\",\"name\":\"Sandeep\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/5beff2e054be0f90faa52b0b165374035b9d3f1ffa505dc3bfa0a1ac969bbbf2?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\/5beff2e054be0f90faa52b0b165374035b9d3f1ffa505dc3bfa0a1ac969bbbf2?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Sandeep\"},\"sameAs\":[\"http:\/\/webkul.com\"],\"url\":\"https:\/\/webkul.com\/blog\/author\/sandeep\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Generate automatic access token with Curl - 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\/generate-automatic-access-token-with-curl\/","og_locale":"en_US","og_type":"article","og_title":"Generate automatic access token with Curl - Webkul Blog","og_description":"Automatic Generate Facebook access token you just need the client app id, secret key and short time access token to generating long time access token. Here is the code : $ch1 = curl_init(); \/\/this part we set up curl curl_setopt($ch1, CURLOPT_URL, 'https:\/\/graph.facebook.com\/oauth\/access_token?client_id='.$wkapiid.'&amp;client_secret='.$wkappsecret.'&amp;grant_type=fb_exchange_token&amp;fb_exchange_token='.$accesstoken.''); curl_setopt($ch1, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch1, CURLOPT_TIMEOUT, 15); curl_setopt($ch1, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($ch1, CURLOPT_FOLLOWLOCATION, true); $longaccesstoken [...]","og_url":"https:\/\/webkul.com\/blog\/generate-automatic-access-token-with-curl\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2013-05-27T07:26:06+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-og.png","type":"image\/png"}],"author":"Sandeep","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Sandeep","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/generate-automatic-access-token-with-curl\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/generate-automatic-access-token-with-curl\/"},"author":{"name":"Sandeep","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/53c1b6c4937da7467b0493e192cba16e"},"headline":"Generate automatic access token with Curl","datePublished":"2013-05-27T07:26:06+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/generate-automatic-access-token-with-curl\/"},"wordCount":53,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"articleSection":["Facebook","Joomla","php","social media"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/generate-automatic-access-token-with-curl\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/generate-automatic-access-token-with-curl\/","url":"https:\/\/webkul.com\/blog\/generate-automatic-access-token-with-curl\/","name":"Generate automatic access token with Curl - Webkul Blog","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"datePublished":"2013-05-27T07:26:06+00:00","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/generate-automatic-access-token-with-curl\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/generate-automatic-access-token-with-curl\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/generate-automatic-access-token-with-curl\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Generate automatic access token with Curl"}]},{"@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\/53c1b6c4937da7467b0493e192cba16e","name":"Sandeep","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/5beff2e054be0f90faa52b0b165374035b9d3f1ffa505dc3bfa0a1ac969bbbf2?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\/5beff2e054be0f90faa52b0b165374035b9d3f1ffa505dc3bfa0a1ac969bbbf2?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Sandeep"},"sameAs":["http:\/\/webkul.com"],"url":"https:\/\/webkul.com\/blog\/author\/sandeep\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/1786","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\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=1786"}],"version-history":[{"count":2,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/1786\/revisions"}],"predecessor-version":[{"id":1788,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/1786\/revisions\/1788"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=1786"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=1786"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=1786"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}