{"id":3374,"date":"2014-09-02T19:56:47","date_gmt":"2014-09-02T19:56:47","guid":{"rendered":"https:\/\/www.inmotionhosting.com\/support\/2014\/09\/02\/connecting-to-the-facebook-api-using-the-facebook-php-sdk\/"},"modified":"2021-08-16T22:58:28","modified_gmt":"2021-08-17T02:58:28","slug":"connecting-to-the-facebook-api-using-the-facebook-php-sdk","status":"publish","type":"post","link":"https:\/\/www.inmotionhosting.com\/support\/website\/connecting-to-the-facebook-api-using-the-facebook-php-sdk\/","title":{"rendered":"Connecting to the Facebook API using the Facebook PHP SDK"},"content":{"rendered":"\n<p>When developing web applications, you may need to connect to the Facebook API to gather information or make posts for the user. In this article, we will be teaching you how to connect to the Facebook API using the Facebook PHP SDK.<\/p>\n\n\n\n<p><strong>Note<\/strong>: If you have not already done so, be sure to prepare the SDK on your development environment by following our guide on&nbsp;<a href=\"\/support\/edu\/software\/setting-up-the-facebook-sdk\/\">obtaining the Facebook SDK<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Full code example<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php\n\/\/ Begin loading the necessary files for the Facebook SDK.\nrequire ( 'autoload.php' );\n\n\/\/ Load the required PHP classes from the Facebook SDK.\nuse Facebook\\FacebookSession;\nuse Facebook\\FacebookRedirectLoginHelper;\nuse Facebook\\FacebookRequest;\n\n\/\/ Start the session\nsession_start();\n\n\/\/ Initialize the Facebook app using the application ID and secret.\nFacebookSession::setDefaultApplication( 'xxxxxxxxxxxxxx','xxxxxxxxxxxxxxxxxxxxxxxxxxx' );\n\n\/\/ Define Facebook's login helper and redirect back to our page.\n$helper = new FacebookRedirectLoginHelper( 'https:\/\/local.wordpress.dev\/fb\/index.php' );\n\n\/\/ Check to ensure our session was started correctly and the access token exists.\nif ( isset( $_SESSION ) &amp;&amp; isset( $_SESSION['fb_token'] ) ) {\n\/\/ Using the access token, create a new session.\n$session = new FacebookSession( $_SESSION['fb_token'] );\n\n\/\/ Determine if the defined session is indeed valid.\nif ( !$session->validate() ) {\n$session = null;\n}\n}\n\/\/ Check if an active session exists.\nif ( !isset( $session ) || $session === null ) {\n\/\/ If no session exists, let's try to create one.\n$session = $helper->getSessionFromRedirect();\n}\n\n\/\/ Make sure we have a session started.\nif ( isset( $session ) ) {\n\/\/ Save the session\n$_SESSION['fb_token'] = $session->getToken();\n\n\/\/ Create a new Facebook session using our token.\n$session = new FacebookSession( $session->getToken() );\necho 'Connected to Facebook!';\n} else {\n\/\/ Show login url\necho '&lt;a href=\"' . $helper->getLoginUrl( array( 'email', 'user_friends' ) ) . '\">Login&lt;\/a>';\n}<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Walking through the code<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Connecting to the Facebook SDK<\/h3>\n\n\n\n<p>First, we will need to connect to the Facebook SDK to load all of the required libraries. Thankfully, much of the work is already done for us with the&nbsp;<em>autoload.php<\/em>&nbsp;file that is included with the Facebook SDK. We simply need to include it and reference the required connection classes like so:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ Begin loading the necessary files for the Facebook SDK.\nrequire ( 'autoload.php' );\n\n\/\/ Load the required PHP classes from the Facebook SDK.\nuse Facebook\\FacebookSession;\nuse Facebook\\FacebookRedirectLoginHelper;\nuse Facebook\\FacebookRequest;<\/code><\/pre>\n\n\n\n<p>As you can see here, we used the&nbsp;<em>require()<\/em>&nbsp;PHP function to include the autoload.php file.<\/p>\n\n\n\n<p>Then, as our connection needs to load a session with Facebook, we have set our code to include the&nbsp;<em>FacebookSession<\/em>,&nbsp;<em>FacebookRedirectLoginHelper<\/em>, and&nbsp;<em>FacebookRequest<\/em>&nbsp;PHP classes to appropriately connect as well as request data from Facebook&#8217;s API.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Starting the session<\/h3>\n\n\n\n<p>Now that we have included the required libraries in our code, we need to open a new session. To do so, simply call the&nbsp;<em>session_star()<\/em>&nbsp;function:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ Start the session\nsession_start();<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Initializing the connection to the Facebook API<\/h3>\n\n\n\n<p>So far, we have successfully started a session, but we&#8217;re still not yet connected to the Facebook API. To begin the connection, you will need to send your API key to Facebook&#8217;s API. The following lines will handle passing the API key on the Facebook:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ Initialize the Facebook app using the application ID and secret.\nFacebookSession::setDefaultApplication( 'xxxxxxxxxxxxxx','xxxxxxxxxxxxxxxxxxxxxxxxxxx' );<\/code><\/pre>\n\n\n\n<p>Within this line, you will need to add your Application ID and Secret that is obtained from the Facebook Developers site. If you do not already have an Application ID, you may follow our article on obtaining a Facebook API key.<\/p>\n\n\n\n<p>Now that the application is initialized and your credentials are verified with the Facebook API, a session needs to be created with Facebook. When creating sessions with the Facebook API, the user will be sent to Facebook to log in and authorize the application, then redirected back to your application. In the following lines, we are opening a session with Facebook and preparing to run requests to the Facebook API.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ Define Facebook's login helper and redirect back to our page.\n$helper = new FacebookRedirectLoginHelper( 'https:\/\/local.wordpress.dev\/fb\/index.php' );\n\n\/\/ Check to ensure our session was started correctly and the access token exists.\nif ( isset( $_SESSION ) &amp;&amp; isset( $_SESSION['fb_token'] ) ) {\n\/\/ Using the access token, create a new session.\n$session = new FacebookSession( $_SESSION['fb_token'] );\n\n\/\/ Determine if the defined session is indeed valid.\nif ( !$session->validate() ) {\n$session = null;\n}\n}\n\/\/ Check if an active session exists.\nif ( !isset( $session ) || $session === null ) {\n\/\/ If no session exists, let's try to create one.\n$session = $helper->getSessionFromRedirect();\n}<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Prompt the user to login or display data<\/h3>\n\n\n\n<p>In the next lines, we then need to check to see if there is an active session, then display the content appopriately. If the user is not yet logged in and provided permissions to the application, the user will be prompted with a link to log in and will be returned to the page as per the&nbsp;<em>FacebookRedirectLoginHelper<\/em>&nbsp;URL. Once the user is returned, they will have a session active and will then be shown&nbsp;<strong>Connected to Facebook!<\/strong>&nbsp;in their browser.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ Make sure we have a session started.\nif ( isset( $session ) ) {\n\/\/ Save the session\n$_SESSION['fb_token'] = $session->getToken();\n\n\/\/ Create a new Facebook session using our token.\n$session = new FacebookSession( $session->getToken() );\necho 'Connected to Facebook!';\n} else {\n\/\/ Show login url\necho '&lt;a href=\"' . $helper->getLoginUrl( array( 'email', 'user_friends' ) ) . '\">Login&lt;\/a>';\n}<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Where do I go from here?<\/h2>\n\n\n\n<p>Now that you know how to easily connect to the Facebook API using the Facebook SDK for PHP, you can now make queries to Facebook to generate information on users.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When developing web applications, you may need to connect to the Facebook API to gather information or make posts for the user. In this article, we will be teaching you how to connect to the Facebook API using the Facebook PHP SDK. Note: If you have not already done so, be sure to prepare the<a class=\"moretag\" href=\"https:\/\/www.inmotionhosting.com\/support\/website\/connecting-to-the-facebook-api-using-the-facebook-php-sdk\/\"> Read More ><\/a><\/p>\n","protected":false},"author":12,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4288],"tags":[],"class_list":["post-3374","post","type-post","status-publish","format-standard","hentry","category-website"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Connecting to the Facebook API using the Facebook PHP SDK | InMotion Hosting<\/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:\/\/www.inmotionhosting.com\/support\/website\/connecting-to-the-facebook-api-using-the-facebook-php-sdk\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Connecting to the Facebook API using the Facebook PHP SDK | InMotion Hosting\" \/>\n<meta property=\"og:description\" content=\"When developing web applications, you may need to connect to the Facebook API to gather information or make posts for the user. In this article, we will be teaching you how to connect to the Facebook API using the Facebook PHP SDK. Note: If you have not already done so, be sure to prepare the Read More &gt;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.inmotionhosting.com\/support\/website\/connecting-to-the-facebook-api-using-the-facebook-php-sdk\/\" \/>\n<meta property=\"og:site_name\" content=\"InMotion Hosting Support Center\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inmotionhosting\/\" \/>\n<meta property=\"article:published_time\" content=\"2014-09-02T19:56:47+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-08-17T02:58:28+00:00\" \/>\n<meta name=\"author\" content=\"Jeff Matson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:site\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeff Matson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/connecting-to-the-facebook-api-using-the-facebook-php-sdk\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/connecting-to-the-facebook-api-using-the-facebook-php-sdk\/\"},\"author\":{\"name\":\"Jeff Matson\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/83776252b196c020e4352a3796e5642b\"},\"headline\":\"Connecting to the Facebook API using the Facebook PHP SDK\",\"datePublished\":\"2014-09-02T19:56:47+00:00\",\"dateModified\":\"2021-08-17T02:58:28+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/connecting-to-the-facebook-api-using-the-facebook-php-sdk\/\"},\"wordCount\":533,\"commentCount\":9,\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"articleSection\":[\"Website\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/website\/connecting-to-the-facebook-api-using-the-facebook-php-sdk\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/connecting-to-the-facebook-api-using-the-facebook-php-sdk\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/website\/connecting-to-the-facebook-api-using-the-facebook-php-sdk\/\",\"name\":\"Connecting to the Facebook API using the Facebook PHP SDK | InMotion Hosting\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\"},\"datePublished\":\"2014-09-02T19:56:47+00:00\",\"dateModified\":\"2021-08-17T02:58:28+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/connecting-to-the-facebook-api-using-the-facebook-php-sdk\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/website\/connecting-to-the-facebook-api-using-the-facebook-php-sdk\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/connecting-to-the-facebook-api-using-the-facebook-php-sdk\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.inmotionhosting.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Connecting to the Facebook API using the Facebook PHP SDK\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"name\":\"InMotion Hosting Support Center\",\"description\":\"Web Hosting Support &amp; Tutorials\",\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\",\"name\":\"InMotion Hosting\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"width\":696,\"height\":696,\"caption\":\"InMotion Hosting\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/inmotionhosting\/\",\"https:\/\/x.com\/InMotionHosting\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/83776252b196c020e4352a3796e5642b\",\"name\":\"Jeff Matson\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/author\/jeffma\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Connecting to the Facebook API using the Facebook PHP SDK | InMotion Hosting","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:\/\/www.inmotionhosting.com\/support\/website\/connecting-to-the-facebook-api-using-the-facebook-php-sdk\/","og_locale":"en_US","og_type":"article","og_title":"Connecting to the Facebook API using the Facebook PHP SDK | InMotion Hosting","og_description":"When developing web applications, you may need to connect to the Facebook API to gather information or make posts for the user. In this article, we will be teaching you how to connect to the Facebook API using the Facebook PHP SDK. Note: If you have not already done so, be sure to prepare the Read More >","og_url":"https:\/\/www.inmotionhosting.com\/support\/website\/connecting-to-the-facebook-api-using-the-facebook-php-sdk\/","og_site_name":"InMotion Hosting Support Center","article_publisher":"https:\/\/www.facebook.com\/inmotionhosting\/","article_published_time":"2014-09-02T19:56:47+00:00","article_modified_time":"2021-08-17T02:58:28+00:00","author":"Jeff Matson","twitter_card":"summary_large_image","twitter_creator":"@InMotionHosting","twitter_site":"@InMotionHosting","twitter_misc":{"Written by":"Jeff Matson","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/connecting-to-the-facebook-api-using-the-facebook-php-sdk\/#article","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/connecting-to-the-facebook-api-using-the-facebook-php-sdk\/"},"author":{"name":"Jeff Matson","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/83776252b196c020e4352a3796e5642b"},"headline":"Connecting to the Facebook API using the Facebook PHP SDK","datePublished":"2014-09-02T19:56:47+00:00","dateModified":"2021-08-17T02:58:28+00:00","mainEntityOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/connecting-to-the-facebook-api-using-the-facebook-php-sdk\/"},"wordCount":533,"commentCount":9,"publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"articleSection":["Website"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.inmotionhosting.com\/support\/website\/connecting-to-the-facebook-api-using-the-facebook-php-sdk\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/connecting-to-the-facebook-api-using-the-facebook-php-sdk\/","url":"https:\/\/www.inmotionhosting.com\/support\/website\/connecting-to-the-facebook-api-using-the-facebook-php-sdk\/","name":"Connecting to the Facebook API using the Facebook PHP SDK | InMotion Hosting","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#website"},"datePublished":"2014-09-02T19:56:47+00:00","dateModified":"2021-08-17T02:58:28+00:00","breadcrumb":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/connecting-to-the-facebook-api-using-the-facebook-php-sdk\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.inmotionhosting.com\/support\/website\/connecting-to-the-facebook-api-using-the-facebook-php-sdk\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/connecting-to-the-facebook-api-using-the-facebook-php-sdk\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.inmotionhosting.com\/support\/"},{"@type":"ListItem","position":2,"name":"Connecting to the Facebook API using the Facebook PHP SDK"}]},{"@type":"WebSite","@id":"https:\/\/www.inmotionhosting.com\/support\/#website","url":"https:\/\/www.inmotionhosting.com\/support\/","name":"InMotion Hosting Support Center","description":"Web Hosting Support &amp; Tutorials","publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.inmotionhosting.com\/support\/#organization","name":"InMotion Hosting","url":"https:\/\/www.inmotionhosting.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","width":696,"height":696,"caption":"InMotion Hosting"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/inmotionhosting\/","https:\/\/x.com\/InMotionHosting"]},{"@type":"Person","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/83776252b196c020e4352a3796e5642b","name":"Jeff Matson","url":"https:\/\/www.inmotionhosting.com\/support\/author\/jeffma\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"primary_category":null,"_links":{"self":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/3374","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/comments?post=3374"}],"version-history":[{"count":2,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/3374\/revisions"}],"predecessor-version":[{"id":84211,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/3374\/revisions\/84211"}],"wp:attachment":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/media?parent=3374"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/categories?post=3374"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/tags?post=3374"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}