{"id":434,"date":"2019-04-05T13:11:09","date_gmt":"2019-04-05T07:41:09","guid":{"rendered":"https:\/\/webdesignerinc.com\/blog\/?p=434"},"modified":"2019-04-05T13:35:23","modified_gmt":"2019-04-05T08:05:23","slug":"using-facebook-php-sdk-3-with-codeigniter","status":"publish","type":"post","link":"https:\/\/webdesignerinc.com\/blog\/using-facebook-php-sdk-3-with-codeigniter\/","title":{"rendered":"Using Facebook PHP SDK 3 with CodeIgniter"},"content":{"rendered":"<h2>Facebook App<\/h2>\n<ol>\n<li><a href=\"http:\/\/developers.facebook.com\/apps\" target=\"_blank\" rel=\"noopener noreferrer\">Create a new Facebook App<\/a>.<\/li>\n<li>Get the APP ID and APP Secret.<\/li>\n<li>After creating your App, click\u00a0<strong>Settings<\/strong>.<\/li>\n<li>In the Basic section, add your domain name in the App Domains.<\/li>\n<li>Click on\u00a0<strong>Add Platform<\/strong>\u00a0and select\u00a0<strong>Website<\/strong>\u00a0and add the same domain you added in step 4 but with\u00a0<strong>http:\/\/<\/strong>\u00a0as prefix in\u00a0<strong>Site URL<\/strong>.<\/li>\n<li>To test the app\u00a0<strong>localhost<\/strong>, you need to create a\u00a0<strong>Virtual Host<\/strong>.<\/li>\n<\/ol>\n<h2>Installing<\/h2>\n<ol>\n<li>Download the\u00a0<a href=\"https:\/\/developers.facebook.com\/docs\/reference\/php\/\" target=\"_blank\" rel=\"noopener noreferrer\">Facebook PHP SDK<\/a>.<\/li>\n<li>Download\u00a0<a href=\"http:\/\/codeigniter.com\/download.php\" target=\"_blank\" rel=\"noopener noreferrer\">CodeIgniter<\/a>.<\/li>\n<li>Extract CodeIgniter.<\/li>\n<li>Extract the Facebook SDK and\n<ol>\n<li>Rename facebook.php to Facebook.php<\/li>\n<li>Add the following at the beginning of the Facebook.php file, right after the php opening tag.\n<div>\n<div id=\"highlighter_431923\">\n<div><\/div>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<\/td>\n<td>\n<div>\n<div><code>if ( ! defined('BASEPATH')) exit('No direct script access allowed');<\/code><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/li>\n<li>Create a directory named\u00a0<em>\u201cfacebook\u201d<\/em>\u00a0in\u00a0<em>application\/libraries<\/em>\u00a0and copy the 3 files in the Facebook SDK extracted directory to\u00a0<em>application\/libraries\/facebook\u00a0<\/em>in CodeIgniter.<\/li>\n<\/ol>\n<\/li>\n<li>In CodeIgniter, create a file facebook.php in\u00a0<em>application\/config<\/em>\u00a0directory with the following content (add your application Id and secret key of the Facebook app):\n<div>\n<div id=\"highlighter_306407\">\n<div><\/div>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<div>2<\/div>\n<div>3<\/div>\n<div>4<\/div>\n<div>5<\/div>\n<div>6<\/div>\n<div>7<\/div>\n<\/td>\n<td>\n<div>\n<div><code>&lt;?php\u00a0 if ( ! defined('BASEPATH')) exit('No direct script access allowed');<\/code><\/div>\n<div><code><br \/>\n$config['appId'] = [App ID];<br \/>\n$config['secret'] = [App secret];<\/code><\/div>\n<div><\/div>\n<div><code>\/* End of file facebook.php *\/<br \/>\n\/* Location: .\/application\/config\/facebook.php *\/<br \/>\n<\/code><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/li>\n<li>Open your\u00a0<em>application\/config\/config.php<\/em>\u00a0file and make sure\u00a0<strong>$config[&#8216;allow_get_array&#8217;]<\/strong>\u00a0is set to\u00a0<strong>true<\/strong>.<\/li>\n<\/ol>\n<h2>How this example will work with OAuth<\/h2>\n<p>In OAuth, the procedure is the following:<\/p>\n<ol>\n<li>The user clicks on a sign in link on your website.<\/li>\n<li>User is redirected to Facebook, enter his credentials, authorize your app.<\/li>\n<li>Facebook then redirects the user back to your application with data.<\/li>\n<\/ol>\n<h2>Creating controller and view files<\/h2>\n<p>1. Create a controller (in this example Auth Controller). In your controller add the following code:<\/p>\n<div>\n<div id=\"highlighter_709492\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<div>2<\/div>\n<div>3<\/div>\n<div>4<\/div>\n<div>5<\/div>\n<div>6<\/div>\n<div>7<\/div>\n<div>8<\/div>\n<div>9<\/div>\n<div>10<\/div>\n<div>11<\/div>\n<div>12<\/div>\n<div>13<\/div>\n<div>14<\/div>\n<div>15<\/div>\n<div>16<\/div>\n<div>17<\/div>\n<div>18<\/div>\n<div>19<\/div>\n<div>20<\/div>\n<div>21<\/div>\n<div>22<\/div>\n<div>23<\/div>\n<div>24<\/div>\n<div>25<\/div>\n<div>26<\/div>\n<div>27<\/div>\n<div>28<\/div>\n<\/td>\n<td>\n<div><code>&lt;?php\u00a0 if ( ! defined('BASEPATH')) exit('No direct script access allowed');<\/code><\/div>\n<div><code>class Auth extends CI_Controller {<br \/>\npublic function facebook()<br \/>\n{<br \/>\nparse_str( $_SERVER['QUERY_STRING'], $_REQUEST );<br \/>\n$CI = &amp; get_instance();<br \/>\n$CI-&gt;config-&gt;load(\"facebook\", TRUE);<br \/>\n$config = $CI-&gt;config-&gt;item('facebook');<br \/>\n$this-&gt;load-&gt;library('facebook\/Facebook', $config);<\/code>$userId = $this-&gt;facebook-&gt;getUser();\/\/ If user is not yet authenticated, the id will be zero<br \/>\nif($userId == 0){<br \/>\n\/\/ Generate a login url<br \/>\n$data[&#8216;login_url&#8217;] = $this-&gt;facebook-&gt;getLoginUrl(array(\u2018scope\u2019=&gt;\u2019email,user_about_me\u2019));<br \/>\n$this-&gt;load-&gt;view(\u2018main_index\u2019, $data);<br \/>\n} else {<br \/>\n\/\/ Get user\u2019s data and print it<br \/>\n$user = $this-&gt;facebook-&gt;api(\u2018\/me\u2019);<br \/>\necho \u2018&lt;pre&gt;\u2019;<br \/>\nprint_r($user);<br \/>\n}<\/p>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>2. Create a view, called main_index.php in your views directory.<\/p>\n<div>\n<div id=\"highlighter_383693\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<\/td>\n<td>\n<div>\n<div><code><\/code><code>&lt;a href=\"&lt;?php echo $login_url; ?&gt;\"&gt;Click here to login using Facebook&lt;\/a&gt;<\/code><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>3. Now load the function\u00a0<strong>facebook<\/strong>\u00a0of\u00a0<strong>Auth Controller<\/strong>\u00a0in your browser.<\/p>\n<p>If the user authenticates your app, you will get the user\u2019s data.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Facebook App Create a new Facebook App. Get the APP ID and APP Secret. After creating your App, click\u00a0Settings. In the Basic section, add your domain name in the App Domains. Click on\u00a0Add Platform\u00a0and select\u00a0Website\u00a0and add the same domain you added in step 4 but with\u00a0http:\/\/\u00a0as prefix in\u00a0Site URL. To test the app\u00a0localhost, you need [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[26,25],"class_list":["post-434","post","type-post","status-publish","format-standard","hentry","category-tutorial","tag-codeigniter","tag-php"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Using Facebook PHP SDK 3 with CodeIgniter - Web designer Blog | Website Design and Development<\/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:\/\/webdesignerinc.com\/blog\/using-facebook-php-sdk-3-with-codeigniter\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Using Facebook PHP SDK 3 with CodeIgniter - Web designer Blog | Website Design and Development\" \/>\n<meta property=\"og:description\" content=\"Facebook App Create a new Facebook App. Get the APP ID and APP Secret. After creating your App, click\u00a0Settings. In the Basic section, add your domain\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webdesignerinc.com\/blog\/using-facebook-php-sdk-3-with-codeigniter\/\" \/>\n<meta property=\"og:site_name\" content=\"Web designer Blog | Website Design and Development\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Webdesignerinc\" \/>\n<meta property=\"article:published_time\" content=\"2019-04-05T07:41:09+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-04-05T08:05:23+00:00\" \/>\n<meta name=\"author\" content=\"Teji\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@teji_tejinder\" \/>\n<meta name=\"twitter:site\" content=\"@teji_tejinder\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Teji\" \/>\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:\\\/\\\/webdesignerinc.com\\\/blog\\\/using-facebook-php-sdk-3-with-codeigniter\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/webdesignerinc.com\\\/blog\\\/using-facebook-php-sdk-3-with-codeigniter\\\/\"},\"author\":{\"name\":\"Teji\",\"@id\":\"https:\\\/\\\/webdesignerinc.com\\\/blog\\\/#\\\/schema\\\/person\\\/5e2f01e80461d9a5ca3c361b86f405e7\"},\"headline\":\"Using Facebook PHP SDK 3 with CodeIgniter\",\"datePublished\":\"2019-04-05T07:41:09+00:00\",\"dateModified\":\"2019-04-05T08:05:23+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/webdesignerinc.com\\\/blog\\\/using-facebook-php-sdk-3-with-codeigniter\\\/\"},\"wordCount\":350,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/webdesignerinc.com\\\/blog\\\/#organization\"},\"keywords\":[\"CodeIgniter\",\"PHP\"],\"articleSection\":[\"Tutorial\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/webdesignerinc.com\\\/blog\\\/using-facebook-php-sdk-3-with-codeigniter\\\/\",\"url\":\"https:\\\/\\\/webdesignerinc.com\\\/blog\\\/using-facebook-php-sdk-3-with-codeigniter\\\/\",\"name\":\"Using Facebook PHP SDK 3 with CodeIgniter - Web designer Blog | Website Design and Development\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/webdesignerinc.com\\\/blog\\\/#website\"},\"datePublished\":\"2019-04-05T07:41:09+00:00\",\"dateModified\":\"2019-04-05T08:05:23+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/webdesignerinc.com\\\/blog\\\/using-facebook-php-sdk-3-with-codeigniter\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/webdesignerinc.com\\\/blog\\\/using-facebook-php-sdk-3-with-codeigniter\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/webdesignerinc.com\\\/blog\\\/using-facebook-php-sdk-3-with-codeigniter\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/webdesignerinc.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Using Facebook PHP SDK 3 with CodeIgniter\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/webdesignerinc.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/webdesignerinc.com\\\/blog\\\/\",\"name\":\"Web designer Blog | Website Design and Development\",\"description\":\"Practical web design, WordPress, and development guides for businesses, freelancers, and developers.\",\"publisher\":{\"@id\":\"https:\\\/\\\/webdesignerinc.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/webdesignerinc.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/webdesignerinc.com\\\/blog\\\/#organization\",\"name\":\"Web designer Blog | Website Design and Development\",\"url\":\"https:\\\/\\\/webdesignerinc.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/webdesignerinc.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/webdesignerinc.com\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/09\\\/logo1.png\",\"contentUrl\":\"https:\\\/\\\/webdesignerinc.com\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/09\\\/logo1.png\",\"width\":409,\"height\":80,\"caption\":\"Web designer Blog | Website Design and Development\"},\"image\":{\"@id\":\"https:\\\/\\\/webdesignerinc.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/Webdesignerinc\",\"https:\\\/\\\/x.com\\\/teji_tejinder\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/tejindersi\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/webdesignerinc.com\\\/blog\\\/#\\\/schema\\\/person\\\/5e2f01e80461d9a5ca3c361b86f405e7\",\"name\":\"Teji\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3933d592d4425623e44a3ddce18ae04f785295e0dd9b8b9d99251e81a0544a52?s=96&r=g&d=https:\\\/\\\/webdesignerinc.com\\\/blog\\\/wp-content\\\/plugins\\\/userswp\\\/assets\\\/images\\\/no_profile.png\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3933d592d4425623e44a3ddce18ae04f785295e0dd9b8b9d99251e81a0544a52?s=96&r=g&d=https:\\\/\\\/webdesignerinc.com\\\/blog\\\/wp-content\\\/plugins\\\/userswp\\\/assets\\\/images\\\/no_profile.png\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3933d592d4425623e44a3ddce18ae04f785295e0dd9b8b9d99251e81a0544a52?s=96&r=g&d=https:\\\/\\\/webdesignerinc.com\\\/blog\\\/wp-content\\\/plugins\\\/userswp\\\/assets\\\/images\\\/no_profile.png\",\"caption\":\"Teji\"},\"description\":\"i am admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Using Facebook PHP SDK 3 with CodeIgniter - Web designer Blog | Website Design and Development","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:\/\/webdesignerinc.com\/blog\/using-facebook-php-sdk-3-with-codeigniter\/","og_locale":"en_US","og_type":"article","og_title":"Using Facebook PHP SDK 3 with CodeIgniter - Web designer Blog | Website Design and Development","og_description":"Facebook App Create a new Facebook App. Get the APP ID and APP Secret. After creating your App, click\u00a0Settings. In the Basic section, add your domain","og_url":"https:\/\/webdesignerinc.com\/blog\/using-facebook-php-sdk-3-with-codeigniter\/","og_site_name":"Web designer Blog | Website Design and Development","article_publisher":"https:\/\/www.facebook.com\/Webdesignerinc","article_published_time":"2019-04-05T07:41:09+00:00","article_modified_time":"2019-04-05T08:05:23+00:00","author":"Teji","twitter_card":"summary_large_image","twitter_creator":"@teji_tejinder","twitter_site":"@teji_tejinder","twitter_misc":{"Written by":"Teji","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webdesignerinc.com\/blog\/using-facebook-php-sdk-3-with-codeigniter\/#article","isPartOf":{"@id":"https:\/\/webdesignerinc.com\/blog\/using-facebook-php-sdk-3-with-codeigniter\/"},"author":{"name":"Teji","@id":"https:\/\/webdesignerinc.com\/blog\/#\/schema\/person\/5e2f01e80461d9a5ca3c361b86f405e7"},"headline":"Using Facebook PHP SDK 3 with CodeIgniter","datePublished":"2019-04-05T07:41:09+00:00","dateModified":"2019-04-05T08:05:23+00:00","mainEntityOfPage":{"@id":"https:\/\/webdesignerinc.com\/blog\/using-facebook-php-sdk-3-with-codeigniter\/"},"wordCount":350,"commentCount":0,"publisher":{"@id":"https:\/\/webdesignerinc.com\/blog\/#organization"},"keywords":["CodeIgniter","PHP"],"articleSection":["Tutorial"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/webdesignerinc.com\/blog\/using-facebook-php-sdk-3-with-codeigniter\/","url":"https:\/\/webdesignerinc.com\/blog\/using-facebook-php-sdk-3-with-codeigniter\/","name":"Using Facebook PHP SDK 3 with CodeIgniter - Web designer Blog | Website Design and Development","isPartOf":{"@id":"https:\/\/webdesignerinc.com\/blog\/#website"},"datePublished":"2019-04-05T07:41:09+00:00","dateModified":"2019-04-05T08:05:23+00:00","breadcrumb":{"@id":"https:\/\/webdesignerinc.com\/blog\/using-facebook-php-sdk-3-with-codeigniter\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webdesignerinc.com\/blog\/using-facebook-php-sdk-3-with-codeigniter\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/webdesignerinc.com\/blog\/using-facebook-php-sdk-3-with-codeigniter\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webdesignerinc.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Using Facebook PHP SDK 3 with CodeIgniter"}]},{"@type":"WebSite","@id":"https:\/\/webdesignerinc.com\/blog\/#website","url":"https:\/\/webdesignerinc.com\/blog\/","name":"Web designer Blog | Website Design and Development","description":"Practical web design, WordPress, and development guides for businesses, freelancers, and developers.","publisher":{"@id":"https:\/\/webdesignerinc.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webdesignerinc.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webdesignerinc.com\/blog\/#organization","name":"Web designer Blog | Website Design and Development","url":"https:\/\/webdesignerinc.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webdesignerinc.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/webdesignerinc.com\/blog\/wp-content\/uploads\/2017\/09\/logo1.png","contentUrl":"https:\/\/webdesignerinc.com\/blog\/wp-content\/uploads\/2017\/09\/logo1.png","width":409,"height":80,"caption":"Web designer Blog | Website Design and Development"},"image":{"@id":"https:\/\/webdesignerinc.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/Webdesignerinc","https:\/\/x.com\/teji_tejinder","https:\/\/www.linkedin.com\/in\/tejindersi"]},{"@type":"Person","@id":"https:\/\/webdesignerinc.com\/blog\/#\/schema\/person\/5e2f01e80461d9a5ca3c361b86f405e7","name":"Teji","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/3933d592d4425623e44a3ddce18ae04f785295e0dd9b8b9d99251e81a0544a52?s=96&r=g&d=https:\/\/webdesignerinc.com\/blog\/wp-content\/plugins\/userswp\/assets\/images\/no_profile.png","url":"https:\/\/secure.gravatar.com\/avatar\/3933d592d4425623e44a3ddce18ae04f785295e0dd9b8b9d99251e81a0544a52?s=96&r=g&d=https:\/\/webdesignerinc.com\/blog\/wp-content\/plugins\/userswp\/assets\/images\/no_profile.png","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/3933d592d4425623e44a3ddce18ae04f785295e0dd9b8b9d99251e81a0544a52?s=96&r=g&d=https:\/\/webdesignerinc.com\/blog\/wp-content\/plugins\/userswp\/assets\/images\/no_profile.png","caption":"Teji"},"description":"i am admin"}]}},"_links":{"self":[{"href":"https:\/\/webdesignerinc.com\/blog\/wp-json\/wp\/v2\/posts\/434","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webdesignerinc.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webdesignerinc.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webdesignerinc.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/webdesignerinc.com\/blog\/wp-json\/wp\/v2\/comments?post=434"}],"version-history":[{"count":0,"href":"https:\/\/webdesignerinc.com\/blog\/wp-json\/wp\/v2\/posts\/434\/revisions"}],"wp:attachment":[{"href":"https:\/\/webdesignerinc.com\/blog\/wp-json\/wp\/v2\/media?parent=434"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webdesignerinc.com\/blog\/wp-json\/wp\/v2\/categories?post=434"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webdesignerinc.com\/blog\/wp-json\/wp\/v2\/tags?post=434"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}