{"id":20,"date":"2020-02-28T15:57:43","date_gmt":"2020-02-28T15:57:43","guid":{"rendered":"http:\/\/wiki2.plumserver.com\/knowledge-base\/facebook-login-troubleshooting"},"modified":"2021-06-30T17:07:41","modified_gmt":"2021-06-30T14:07:41","slug":"facebook-login-troubleshooting","status":"publish","type":"post","link":"https:\/\/plumrocket.com\/docs\/magento-social-login-pro\/v3\/troubleshooting\/facebook","title":{"rendered":"Fixing login issue due to Facebook API update 2017"},"content":{"rendered":"\n<p>In March 2017 Facebook changed the response format for the Facebook API.<br>In case you experience issues with Facebook Login button on your Magento website, please download and update your facebook login or social login pro extension.<br>At Plumrocket, we have released updated versions of free Twitter &amp; Facebook Login extension, as well as Social Login Pro extensions for Magento 1 and Magento 2. Latest versions of these extensions include updated Facebook API response format.<\/p>\n\n\n\n<h2 id=\"twitter-facebook-login-magento-extension\">Twitter &amp; Facebook Login Magento Extension<\/h2>\n\n\n\n<p>To download latest version of your extension, simply <a href=\"\/customer\/account\/login\/\" target=\"_blank\" rel=\"noopener noreferrer\">login<\/a> to your store account and then go to &#8220;My Account&#8221; =&gt; &#8220;My Downloads&#8221; page. You can also repurchase the extension from our store using links below:<\/p>\n\n\n\n<ul><li><a href=\"\/magento-1-twitter-facebook-login\" target=\"_blank\" rel=\"noopener noreferrer\">Download latest version of Twitter &amp; Facebook Login Extension for Magento 1<\/a><\/li><li><a href=\"\/magento-twitter-facebook-login\" target=\"_blank\" rel=\"noopener noreferrer\">Download latest version of Twitter &amp; Facebook Login Extension for Magento 2<\/a><\/li><\/ul>\n\n\n\n<h2 id=\"social-login-pro-magento-extension\">Social Login Pro Magento Extension<\/h2>\n\n\n\n<p>To download latest version of your extension, simply <a href=\"\/customer\/account\/login\/\" target=\"_blank\" rel=\"noopener noreferrer\">login<\/a> to your store account and then go to &#8220;My Account&#8221; =&gt; &#8220;My Downloads&#8221; page. You can also repurchase the extension from our store using links below:<\/p>\n\n\n\n<ul><li><a href=\"\/magento-1-social-login-pro\" target=\"_blank\" rel=\"noopener noreferrer\">Download latest version of Social Login Pro Extension for Magento 1<\/a><\/li><li><a href=\"\/magento-social-login-pro\" target=\"_blank\" rel=\"noopener noreferrer\">Download latest version of Social Login Pro Extension for Magento 2<\/a><\/li><\/ul>\n\n\n\n<h3 id=\"manual-code-changes\">Manual code changes<\/h3>\n\n\n\n<p>If you wish to update your code manually, please do the following: <strong>For Magento 1.x:<\/strong> Navigate to file: <strong>app\/code\/community\/Plumrocket\/SocialLogin\/Model\/Facebook.php<\/strong> Find the code:<\/p>\n\n\n\n<div class=\"wp-block-prismatic-blocks\"><div><\/div><pre><code class=\"language-php\">if($response = $this\n    -&gt;_call(&#039;https:\/\/graph.facebook.com\/oauth\/access_token&#039;, $params)) {  \n    parse_str($response, $token); \n}<\/code><\/pre><\/div>\n\n\n\n<p>Replace it with:<\/p>\n\n\n\n<div class=\"wp-block-prismatic-blocks\"><div><\/div><pre><code class=\"language-php\">if ($response = $this\n    -&gt;_call(&#039;https:\/\/graph.facebook.com\/oauth\/access_token&#039;, $params)) { \n    $token = @json_decode($response, true); if (!$token) { parse_str($response, $token); } \n}<\/code><\/pre><\/div>\n\n\n\n<p><strong>For Magento 2.x:<\/strong> Navigate to one of 2 files: <strong>app\/code\/Plumrocket\/SocialLoginPro\/Model\/Facebook.php<\/strong> <strong>app\/code\/Plumrocket\/SocialLoginFree\/Model\/Facebook.php<\/strong> Find the code:<\/p>\n\n\n\n<div class=\"wp-block-prismatic-blocks\"><div><\/div><pre><code class=\"language-php\">if($response = $this\n    -&gt;_call(&#039;https:\/\/graph.facebook.com\/oauth\/access_token&#039;, $params)) { \n    parse_str($response, $token); \n}<\/code><\/pre><\/div>\n\n\n\n<p>Replace it with:<\/p>\n\n\n\n<div class=\"wp-block-prismatic-blocks\"><div><\/div><pre><code class=\"language-php\">if ($response = $this\n    -&gt;_call(&#039;https:\/\/graph.facebook.com\/oauth\/access_token&#039;, $params)) { \n    $token = @json_decode($response, true); if (!$token) { parse_str($response, $token); } \n}<\/code><\/pre><\/div>\n","protected":false},"excerpt":{"rendered":"<p>In March 2017 Facebook changed the response format for the Facebook API.In case you experience issues with Facebook Login button on your Magento website, please download and update your facebook login or social login pro extension.At Plumrocket, we have released updated versions of free Twitter &amp; Facebook Login extension, as well as Social Login Pro &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/plumrocket.com\/docs\/magento-social-login-pro\/v3\/troubleshooting\/facebook\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Fixing login issue due to Facebook API update 2017&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"_mi_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[2],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v17.2 (Yoast SEO v17.2) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Fixing login issue due to Facebook API update 2017 - Plumrocket Documentation<\/title>\n<meta name=\"description\" content=\"In March 2017 Facebook changed the response format for the Facebook API.In case you experience issues with Facebook Login button on your Magento website,\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/plumrocket.com\/docs\/magento-social-login-pro\/v3\/troubleshooting\/facebook\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Fixing login issue due to Facebook API update 2017\" \/>\n<meta property=\"og:description\" content=\"In March 2017 Facebook changed the response format for the Facebook API.In case you experience issues with Facebook Login button on your Magento website,\" \/>\n<meta property=\"og:url\" content=\"https:\/\/plumrocket.com\/docs\/magento-social-login-pro\/v3\/troubleshooting\/facebook\" \/>\n<meta property=\"og:site_name\" content=\"Plumrocket Documentation\" \/>\n<meta property=\"article:published_time\" content=\"2020-02-28T15:57:43+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-06-30T14:07:41+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Plumrocket\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Fixing login issue due to Facebook API update 2017 - Plumrocket Documentation","description":"In March 2017 Facebook changed the response format for the Facebook API.In case you experience issues with Facebook Login button on your Magento website,","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:\/\/plumrocket.com\/docs\/magento-social-login-pro\/v3\/troubleshooting\/facebook","og_locale":"en_US","og_type":"article","og_title":"Fixing login issue due to Facebook API update 2017","og_description":"In March 2017 Facebook changed the response format for the Facebook API.In case you experience issues with Facebook Login button on your Magento website,","og_url":"https:\/\/plumrocket.com\/docs\/magento-social-login-pro\/v3\/troubleshooting\/facebook","og_site_name":"Plumrocket Documentation","article_published_time":"2020-02-28T15:57:43+00:00","article_modified_time":"2021-06-30T14:07:41+00:00","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Plumrocket","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/plumrocket.com\/docs\/#website","url":"https:\/\/plumrocket.com\/docs\/","name":"Plumrocket Documentation","description":"Extensions docs, troubleshootings etc.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/plumrocket.com\/docs\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/plumrocket.com\/docs\/magento-social-login-pro\/v3\/troubleshooting\/facebook#webpage","url":"https:\/\/plumrocket.com\/docs\/magento-social-login-pro\/v3\/troubleshooting\/facebook","name":"Fixing login issue due to Facebook API update 2017 - Plumrocket Documentation","isPartOf":{"@id":"https:\/\/plumrocket.com\/docs\/#website"},"datePublished":"2020-02-28T15:57:43+00:00","dateModified":"2021-06-30T14:07:41+00:00","author":{"@id":"https:\/\/plumrocket.com\/docs\/#\/schema\/person\/38b360639b934d6c984ee4f3ffce7d20"},"description":"In March 2017 Facebook changed the response format for the Facebook API.In case you experience issues with Facebook Login button on your Magento website,","breadcrumb":{"@id":"https:\/\/plumrocket.com\/docs\/magento-social-login-pro\/v3\/troubleshooting\/facebook#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/plumrocket.com\/docs\/magento-social-login-pro\/v3\/troubleshooting\/facebook"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/plumrocket.com\/docs\/magento-social-login-pro\/v3\/troubleshooting\/facebook#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Docs","item":"https:\/\/plumrocket.com\/docs"},{"@type":"ListItem","position":2,"name":"Magento 2 Extensions","item":"https:\/\/plumrocket.com\/docs\/magento-extensions"},{"@type":"ListItem","position":3,"name":"Fixing login issue due to Facebook API update 2017"}]},{"@type":"Person","@id":"https:\/\/plumrocket.com\/docs\/#\/schema\/person\/38b360639b934d6c984ee4f3ffce7d20","name":"Plumrocket","image":{"@type":"ImageObject","@id":"https:\/\/plumrocket.com\/docs\/#personlogo","inLanguage":"en-US","url":"https:\/\/secure.gravatar.com\/avatar\/72392a92ae750c66560be284502b6676?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/72392a92ae750c66560be284502b6676?s=96&d=mm&r=g","caption":"Plumrocket"},"sameAs":["https:\/\/plumrocket.com\/docs"]}]}},"_links":{"self":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts\/20"}],"collection":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/comments?post=20"}],"version-history":[{"count":0,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts\/20\/revisions"}],"wp:attachment":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/media?parent=20"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/categories?post=20"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/tags?post=20"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}