{"id":35341,"date":"2022-07-24T12:35:33","date_gmt":"2022-07-24T12:35:33","guid":{"rendered":"https:\/\/zeru.com\/blog\/?p=35341"},"modified":"2022-07-24T12:35:33","modified_gmt":"2022-07-24T12:35:33","slug":"how-do-i-get-facebook-access-token-that-never-expires","status":"publish","type":"post","link":"https:\/\/zeru.com\/blog\/how-do-i-get-facebook-access-token-that-never-expires","title":{"rendered":"How Do I Get Facebook Access Token That Never Expires?"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_43 counter-flat ez-toc-counter ez-toc-light-blue ez-toc-container-direction\">\n<p class=\"ez-toc-title\">Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-6a4c881d8d96e\" class=\"cssicon\"><span style=\"display: flex;align-items: center;width: 35px;height: 30px;justify-content: center;direction:ltr;\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/label><label for=\"ez-toc-cssicon-toggle-item-6a4c881d8d96e\"  class=\"cssiconcheckbox\">1<\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-6a4c881d8d96e\" ><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/zeru.com\/blog\/how-do-i-get-facebook-access-token-that-never-expires\/#How_Do_I_Get_Facebook_Access_Token_That_Never_Expires\" title=\"How Do I Get Facebook Access Token That Never Expires?\">How Do I Get Facebook Access Token That Never Expires?<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/zeru.com\/blog\/how-do-i-get-facebook-access-token-that-never-expires\/#Offline_access\" title=\"Offline_access\">Offline_access<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/zeru.com\/blog\/how-do-i-get-facebook-access-token-that-never-expires\/#Offline_access_is_deprecated\" title=\"Offline_access is deprecated\">Offline_access is deprecated<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/zeru.com\/blog\/how-do-i-get-facebook-access-token-that-never-expires\/#Offline_access_grants_access_token_that_never_expires\" title=\"Offline_access grants access token that never expires\">Offline_access grants access token that never expires<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/zeru.com\/blog\/how-do-i-get-facebook-access-token-that-never-expires\/#Offline_access_is_being_deprecated_by_Facebook\" title=\"Offline_access is being deprecated by Facebook\">Offline_access is being deprecated by Facebook<\/a><\/li><\/ul><\/nav><\/div>\n<h1><span class=\"ez-toc-section\" id=\"How_Do_I_Get_Facebook_Access_Token_That_Never_Expires\"><\/span>How Do I Get Facebook Access Token That Never Expires?<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<p> <img decoding=\"async\" style=\"max-height:227px; width:auto; height:auto; margin:0px 10px; max-width:34%\" alt=\"How do I get Facebook access token that never expires\" align=\"left\" src=\"https:\/\/i.imgur.com\/nXbmBX7.gif\"> <\/p>\n<p>To use Funnelback with Facebook, you need an access token that never expires. But how do you get this? First, you need to find a way to use Offline_access, which has been deprecated by Facebook. Offline_access allows you to use Facebook while offline, but you will need an access token that never expires. If you have ever tried using Offline_access, you may have found it difficult. But we have a solution that can help you.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Offline_access\"><\/span>Offline_access<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>If you want to use Funnelback as your Facebook data source, you&#8217;ll need an access token that never expires. To do this, you must have an admin role. The best way to obtain such a token is to create a custom app and then request the permission from users. You&#8217;ll need this permission before you can create the application and use it in Facebook. However, you should be aware that Facebook is deprecating offline access tokens for apps and doesn&#8217;t recommend any.<\/p>\n<p>First, you&#8217;ll need to create a new business app on Facebook. If you already have an app, you can skip this step. Next, you&#8217;ll need to generate a short-lived access token. You can do this by selecting Tools &gt; Graph API explorer from the menu bar. Then, in the pop-up window, enter your Facebook user name, which is FACEBOOK-USER.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Offline_access_is_deprecated\"><\/span>Offline_access is deprecated<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>If you want to embed Facebook page reviews on your website, you need to obtain an access token from Facebook. However, this token must be reset manually every 60 days. Fortunately, there is a solution. You can create an App ID and paste it into the Facebook API to get a long-lived access token. But, how do you get this token? First, you must be an admin of the page or app you&#8217;re using.<\/p>\n<p>For this, you must first request the offline-access permission. When you request this permission, Facebook will grant you a token that never expires. But you must be aware that this permission is deprecated by Facebook, so you shouldn&#8217;t rely on it. Also, you need to make sure that you use another browser for your Facebook login. Once you&#8217;ve created an app that uses Facebook Login, make sure it&#8217;s safe to use it on another device.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Offline_access_grants_access_token_that_never_expires\"><\/span>Offline_access grants access token that never expires<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>You&#8217;ve probably heard about Offline_access, a permission that grants your Facebook application a lifetime access token. But does it really work? Offline_access works on existing applications, but doesn&#8217;t work on applications that don&#8217;t have admin roles. Here are two ways to extend an access token on Facebook:<\/p>\n<p>You can use Offline_access to grant your clients an access token that never expires. You&#8217;ll need to map the offline_access role to users on your realm. This will ensure that your Facebook application can receive access to the users&#8217; profiles. You&#8217;ll also need to ensure that you&#8217;re granting the appropriate permissions. You can grant this access to your clients and users by using the Offline_access role.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Offline_access_is_being_deprecated_by_Facebook\"><\/span>Offline_access is being deprecated by Facebook<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The Facebook API has recently changed to make extended permissions easier to review and remove. Developers can also explain why they need to request them. Facebook has also decided to remove the offline_access permission from the application. In its place, Facebook has introduced a new method to reset the expiration time of access tokens. Facebook developers have until May 1 to make the necessary changes to their application. For more information, see Facebook&#8217;s authentication guide.<\/p>\n<p>Offline_access is a permission you can grant to an application to use Facebook&#8217;s API without the user being online. It grants you access to the application and its data for a period of time, which is typically a day or two. Generally, access tokens expire after a short period, so you need to request a new one after the expiration time has passed.<\/p>\n<p> <iframe height=\"278\" src=\"https:\/\/www.youtube.com\/embed\/WOJ8ibS9tLY\" frameborder=\"0\" allowfullscreen=\"true\" width=\"497\" style=\"margin:0px auto; display: block;\"><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>How Do I Get Facebook Access Token That Never Expires? To use Funnelback with Facebook, you need an access token that never expires. But how do you get this? First, you need to find a way to use Offline_access, which has been deprecated by Facebook. Offline_access allows you to use Facebook while offline, but you [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":36810,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v19.7 (Yoast SEO v21.1) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How Do I Get Facebook Access Token That Never Expires? - Zeru<\/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:\/\/zeru.com\/blog\/how-do-i-get-facebook-access-token-that-never-expires\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How Do I Get Facebook Access Token That Never Expires?\" \/>\n<meta property=\"og:description\" content=\"How Do I Get Facebook Access Token That Never Expires? To use Funnelback with Facebook, you need an access token that never expires. But how do you get this? First, you need to find a way to use Offline_access, which has been deprecated by Facebook. Offline_access allows you to use Facebook while offline, but you [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/zeru.com\/blog\/how-do-i-get-facebook-access-token-that-never-expires\" \/>\n<meta property=\"og:site_name\" content=\"Zeru\" \/>\n<meta property=\"article:published_time\" content=\"2022-07-24T12:35:33+00:00\" \/>\n<meta name=\"author\" content=\"Lizzie Yates\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/zeru.com\/blog\/wp-content\/uploads\/How-Do-I-Get-Facebook-Access-Token-That-Never-Expires_35341\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Lizzie Yates\" \/>\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\":\"WebPage\",\"@id\":\"https:\/\/zeru.com\/blog\/how-do-i-get-facebook-access-token-that-never-expires\",\"url\":\"https:\/\/zeru.com\/blog\/how-do-i-get-facebook-access-token-that-never-expires\",\"name\":\"How Do I Get Facebook Access Token That Never Expires? - Zeru\",\"isPartOf\":{\"@id\":\"https:\/\/zeru.com\/blog\/#website\"},\"datePublished\":\"2022-07-24T12:35:33+00:00\",\"dateModified\":\"2022-07-24T12:35:33+00:00\",\"author\":{\"@id\":\"https:\/\/zeru.com\/blog\/#\/schema\/person\/61005d9ec00b94bc50fbaf11b78aa55e\"},\"breadcrumb\":{\"@id\":\"https:\/\/zeru.com\/blog\/how-do-i-get-facebook-access-token-that-never-expires#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/zeru.com\/blog\/how-do-i-get-facebook-access-token-that-never-expires\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/zeru.com\/blog\/how-do-i-get-facebook-access-token-that-never-expires#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/zeru.com\/blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How Do I Get Facebook Access Token That Never Expires?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/zeru.com\/blog\/#website\",\"url\":\"https:\/\/zeru.com\/blog\/\",\"name\":\"Zeru\",\"description\":\"Blog\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/zeru.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/zeru.com\/blog\/#\/schema\/person\/61005d9ec00b94bc50fbaf11b78aa55e\",\"name\":\"Lizzie Yates\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/zeru.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/zeru.com\/blog\/wp-content\/uploads\/19-150x150.jpg\",\"contentUrl\":\"https:\/\/zeru.com\/blog\/wp-content\/uploads\/19-150x150.jpg\",\"caption\":\"Lizzie Yates\"},\"description\":\"A content marketing strategist with the Zeru team for a little over 5 years, Lizzie Yates specializes in everything digital media with a particular focus on social media and technology. Her passion? To follow how the social media sites like Instagram, YouTube, Facebook, Twitter, and TikTok are maturing over time, and what businesses can do to keep up. She shares her insights on our blog in a true outpouring of knowledge and expertise. Her knowledge about technology and social media is vast, and she is always willing to share her insights with businesses to help them stay up-to-date with the latest trends.\",\"url\":\"https:\/\/zeru.com\/blog\/author\/writer\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How Do I Get Facebook Access Token That Never Expires? - Zeru","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:\/\/zeru.com\/blog\/how-do-i-get-facebook-access-token-that-never-expires","og_locale":"en_US","og_type":"article","og_title":"How Do I Get Facebook Access Token That Never Expires?","og_description":"How Do I Get Facebook Access Token That Never Expires? To use Funnelback with Facebook, you need an access token that never expires. But how do you get this? First, you need to find a way to use Offline_access, which has been deprecated by Facebook. Offline_access allows you to use Facebook while offline, but you [&hellip;]","og_url":"https:\/\/zeru.com\/blog\/how-do-i-get-facebook-access-token-that-never-expires","og_site_name":"Zeru","article_published_time":"2022-07-24T12:35:33+00:00","author":"Lizzie Yates","twitter_card":"summary_large_image","twitter_image":"https:\/\/zeru.com\/blog\/wp-content\/uploads\/How-Do-I-Get-Facebook-Access-Token-That-Never-Expires_35341","twitter_misc":{"Written by":"Lizzie Yates","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/zeru.com\/blog\/how-do-i-get-facebook-access-token-that-never-expires","url":"https:\/\/zeru.com\/blog\/how-do-i-get-facebook-access-token-that-never-expires","name":"How Do I Get Facebook Access Token That Never Expires? - Zeru","isPartOf":{"@id":"https:\/\/zeru.com\/blog\/#website"},"datePublished":"2022-07-24T12:35:33+00:00","dateModified":"2022-07-24T12:35:33+00:00","author":{"@id":"https:\/\/zeru.com\/blog\/#\/schema\/person\/61005d9ec00b94bc50fbaf11b78aa55e"},"breadcrumb":{"@id":"https:\/\/zeru.com\/blog\/how-do-i-get-facebook-access-token-that-never-expires#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/zeru.com\/blog\/how-do-i-get-facebook-access-token-that-never-expires"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/zeru.com\/blog\/how-do-i-get-facebook-access-token-that-never-expires#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/zeru.com\/blog"},{"@type":"ListItem","position":2,"name":"How Do I Get Facebook Access Token That Never Expires?"}]},{"@type":"WebSite","@id":"https:\/\/zeru.com\/blog\/#website","url":"https:\/\/zeru.com\/blog\/","name":"Zeru","description":"Blog","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/zeru.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/zeru.com\/blog\/#\/schema\/person\/61005d9ec00b94bc50fbaf11b78aa55e","name":"Lizzie Yates","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/zeru.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/zeru.com\/blog\/wp-content\/uploads\/19-150x150.jpg","contentUrl":"https:\/\/zeru.com\/blog\/wp-content\/uploads\/19-150x150.jpg","caption":"Lizzie Yates"},"description":"A content marketing strategist with the Zeru team for a little over 5 years, Lizzie Yates specializes in everything digital media with a particular focus on social media and technology. Her passion? To follow how the social media sites like Instagram, YouTube, Facebook, Twitter, and TikTok are maturing over time, and what businesses can do to keep up. She shares her insights on our blog in a true outpouring of knowledge and expertise. Her knowledge about technology and social media is vast, and she is always willing to share her insights with businesses to help them stay up-to-date with the latest trends.","url":"https:\/\/zeru.com\/blog\/author\/writer"}]}},"_links":{"self":[{"href":"https:\/\/zeru.com\/blog\/wp-json\/wp\/v2\/posts\/35341"}],"collection":[{"href":"https:\/\/zeru.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zeru.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zeru.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/zeru.com\/blog\/wp-json\/wp\/v2\/comments?post=35341"}],"version-history":[{"count":1,"href":"https:\/\/zeru.com\/blog\/wp-json\/wp\/v2\/posts\/35341\/revisions"}],"predecessor-version":[{"id":35345,"href":"https:\/\/zeru.com\/blog\/wp-json\/wp\/v2\/posts\/35341\/revisions\/35345"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/zeru.com\/blog\/wp-json\/wp\/v2\/media\/36810"}],"wp:attachment":[{"href":"https:\/\/zeru.com\/blog\/wp-json\/wp\/v2\/media?parent=35341"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zeru.com\/blog\/wp-json\/wp\/v2\/categories?post=35341"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zeru.com\/blog\/wp-json\/wp\/v2\/tags?post=35341"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}