You made it all the way down here so you must have enjoyed this post! You may also like:

Google Connect Magento extension Marko Martinovic
Marko Martinovic, | 60

Google Connect Magento extension

Simple social sharing buttons in Magento Srdjan Stojiljkovic
Srdjan Stojiljkovic, | 51

Simple social sharing buttons in Magento

Building a “Facebook Like” button extension for Magento in 15 minutes Branko Ajzele
Branko Ajzele, | 9

Building a “Facebook Like” button extension for Magento in 15 minutes

399 comments

  1. hi
    I’m install this extension and it is working but i want use in mobile application through API in which table i can send facebook id an secret key and how to send

  2. Hi there
    I am using this plugin and it will working but i create api for mobile application in which table i can insert facebook id and secret key.

  3. Very nice Extension. On Chrome this Extension works fine but doesn’t seem to work on Safari. It shows social authentication page i.e. Facebook or Google or any other. But after giving authorization , it redirects to customer login page (with no login). Isn’t it compatible to Safari Browser (Windows / Mac)? Or what can be the solution for this? I need it badly.

  4. Please can somebody help me?
    after the facebook login authorization i still have this url “http://taboutique.ci/customer/account/login/#_=_”
    and its not login in, its bringing me back to the login page
    Please what can do to solve this?

    1. Hello Bamise,

      For a quick fix you may navigate to app/code/community/Inchoo/SocialConnect/controllers/FacebookController.php

      Comment the following lines in _connectCallback() method

      if(!$state || $state != Mage::getSingleton(‘core/session’)->getFacebookCsrf()) {
      return;
      }

      You may also try the same for Google and Twitter login.

  5. Can we call below code twice in a single page?
    $this->getLayout()->createBlock(‘inchoo_socialconnect/google_button’)->setTemplate(“inchoo/socialconnect/google/button.phtml”)->toHtml();

  6. Facebook login works only for the account created few years back.This is not working for new accounts.

  7. Hi,
    I have installed this extension but after facebook login i get this error “Sorry, could not retrieve your Facebook first name. Please try again.” please help.

    1. You are getting the error because your app is of a later version (> ver 2.3)
      You need to go to app/code/community/Inchoo/SocialConnect/controllers/FacebookController.php.
      There go to line 122, and change $userInfo = $client->api(‘/me’); to $userInfo = $client->api(‘/me?fields=id,name,first_name,email,last_name’);

  8. Hello,

    Thank you for such a good extension. I have successfully implemented this and working perfectly. But I have question that after logging with Facebook, I am redirecting to My account page with URL http://my_site.com/customer/account/#_=_

    Why is this #_=_ gets append to URL? How can I remove this. Please respond me as early as possible.

    Thanks in advance,
    Dolly Patel.

    1. Please its redirecting me back to my website login and i get this url “http://mywebsite.com/customer/account/login/#_=_”

  9. I implement this extension on fresh magento 1.9.1 on my local, and got an error after redirect from facebook at this URL: https://inchoo.net/magentosocial/index.php/socialconnect/facebook/connect/?code=AQCFT0PZ06mngj1OmLCR-SU5a13bDWV2Db5iNghnLsBWMhN_5B4BnphGIY9vtDALD90BqsmScYsqiSvhEXLyzNgGCnKfbrp8Z0597EHHm5UqtRYvdAP_cr0s76JocKv9Nem_SC57EeZ665MULaCVNjZ01AksBoqjHTnU792sEDnvzS-ruflrEt5stIQyp4knWe2d_TkfdhV_GC3XjT8yrwhifxJ2cdneKtxM5kkCeKPLcbyejWoLx4DsbmVIolFyehXg1URXO9cVG_QvDIHEUnXWpRHBv9hGxZbtdsynT1ZcT0saBQdhU5PhEp-_d8z5HVk&state=8a9738a11846eceb05a8253bdfbd6958#_=_.

    Error is:
    Fatal error: Call to a member function getBackend() on a non-object in C:\xampp\htdocs\magentosocial\app\code\core\Mage\Eav\Model\Entity\Abstract.php on line 816
    Please suggest me why this error?

  10. HI, Your extension works fine when I try it on localhost , but when I tried on live for facebook, its not working as expected, after clicking on fb login button all the data are successfully fetched from facebook, and also get stored at my location, but then to live site redirects me to login page and shows success message. It’s like buyer got registered then also not able to log in.Please help me out.

  11. Hi,

    we are receiving this notification from Facebook:

    “***** has been making recent API calls to Graph API v2.0, which will reach the end of the 2-year deprecation window on Monday, August 8, 2016. Please migrate all calls to v2.1 or higher in order to avoid potential broken experiences. We recommend using our new Graph API Upgrade Tool to see which of your calls are affected by this change as well as any replacement calls in newer versions. You can also use our changelog to see the full list of changes.”

    When I look at the Inchoo_SocialConnect_Model_Facebook_Oauth2_Client – class I noticed that Oauth Urls dont have API version defined at url. And according to Facebook (https://developers.facebook.com/docs/apps/versions#howlong) if we do not define version at request url :

    “We refer to this as an unversioned call. An unversioned call will default to the oldest available version of the API”

  12. Is it also possible to put Facebook login into the top links (header), aside from its layout on the customer login page? Thanks in advance

  13. It shows this error for twitter.How can I solve this??
    I am using ce1.9.0.1
    a:5:{i:0;s:21:”Error in HTTP request”;i:1;s:1220:”#0 D:\wamp\www\magento\lib\Zend\Oauth\Http\RequestToken.php(51): Zend_Oauth_Http->startRequestCycle(Array)
    #1 D:\wamp\www\magento\lib\Zend\Oauth\Consumer.php(115): Zend_Oauth_Http_RequestToken->execute()
    #2 D:\wamp\www\magento\app\code\community\Inchoo\SocialConnect\Model\Twitter\Client.php(119): Zend_Oauth_Consumer->getRequestToken()
    #3 D:\wamp\www\magento\app\code\community\Inchoo\SocialConnect\controllers\TwitterController.php(14): Inchoo_SocialConnect_Model_Twitter_Client->fetchRequestToken()
    #4 D:\wamp\www\magento\app\code\core\Mage\Core\Controller\Varien\Action.php(418): Inchoo_SocialConnect_TwitterController->requestAction()
    #5 D:\wamp\www\magento\app\code\core\Mage\Core\Controller\Varien\Router\Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch(‘request’)
    #6 D:\wamp\www\magento\app\code\core\Mage\Core\Controller\Varien\Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
    #7 D:\wamp\www\magento\app\code\core\Mage\Core\Model\App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
    #8 D:\wamp\www\magento\app\Mage.php(684): Mage_Core_Model_App->run(Array)
    #9 D:\wamp\www\magento\index.php(87): Mage::run(”, ‘store’)
    #10 {main}”;s:3:”url”;s:49:”/magento/index.php/socialconnect/twitter/request/”;s:11:”script_name”;s:18:”/magento/index.php”;s:4:”skin”;s:7:”default”;}

  14. {“error”:{“message”:”Invalid redirect_uri: Given URL is not permitted by the Application configuration”,”type”:”OAuthException”,”code”:191,”fbtrace_id”:”AJ0DnABEH5d”}}

    1. {“error”:{“message”:”Invalid redirect_uri: Given URL is not allowed by the Application configuration”,”type”:”OAuthException”,”code”:191,”fbtrace_id”:”ASKjIZT2CYg”}}

  15. Hi, in custumer account how to put url secure ssl ( socialconnect/account/google/ and socialconnect/account/facebook/ ) how file i need edit?

  16. I’m on Magento 1.9.2.4 and have a problem with Google.

    Error: invalid_client
    The OAuth client was not found.

    I’ve got the domain verified, Google Plus API Enabled, the URI’s look good, keys are in place. This is version 0.3.7 of Social Connect.

    Facebook is not problem, but no joy on Google.

    Does anyone know if something has changed recently?

    Thanks.

    1. Total and complete error on my part. Just pasted the key in improperly. Had a space at the beginning of the key and it put “+” into the code. (thought it was weird because it worked a couple of months ago on 1.9.2.2)

      Facebook and Google both work on CE 1.9.2.4 absolutely.

      Love this extension!

  17. I am using in Magento 1.9.2.0 version .I placed this code also <input type="hidden" name="form_key" value="” />.But i am getting same error like
    I am getting error: Sorry, could not retrieve your Facebook first name. Please try again .How resolve this issue.

    1. Since Facebook Api version 2.4, fields must be explicity requested in order to have a better performance. To fix this in Magento, just go to FacebookController.php and in line 122, change from:

      $userInfo = $client->api('/me');

      to

      $userInfo = $client->api('/me?fields=id,name,first_name,email,last_name');
  18. I am getting error: Sorry, could not retrieve your Facebook first name. Please try again in Magento 1.9.2.0

    1. If the Api version of your created app is higher than 2.3, you will have that problem. Since Facebook Api version 2.4, fields must be explicity requested in order to have a better performance. To fix this in Magento, just go to FacebookController.php and in line 122, change from:

      $userInfo = $client->api('/me');

      to

      $userInfo = $client->api('/me?fields=id,name,first_name,email,last_name');
    1. I am facing the same issue while running application in local. Did you get a solution?

  19. Hi,

    I recently upgraded to 0.3.7 and found that Facebook social login is problematic.
    On first try it comes back to the login page with a line at the top saying:
    Your Facebook account is now connected to your new user account at our store. Now you can login using our Facebook Login button.

    On second try I am redirected to the account dashboard but there is no contact details, where as I can see that details have been populated in the database. If I click on any of the links I can see that I am not actually logged in because there is no logout link.

    On third try, I am redirected to a error page having the contents below:

    Fatal error: Call to a member function getId() on a non-object in /var/www/html/app/code/core/Mage/Sales/Model/Quote.php on line 456

    Facebook Connect is working great when already logged in either manually or with twitter or google login. Kindly help.

    You can check it out at materialspace.in

  20. I am using “Youama Ajax Login and Register” extension/module.
    How to display facebook button on youama login/reg or any other page??
    plz guide me..! ! !

  21. I was able to get the Twitter app working with no problem but I keep getting Error: redirect_uri_mismatch for Google’s app and

    {
       "error": {
          "message": "Invalid redirect_uri: Given URL is not allowed by the Application configuration",
          "type": "OAuthException",
          "code": 191,
          "fbtrace_id": "HeNfEIM6feb"
       }
    }

    for Facebook’s. I used the same information for all 3 apps… anyone have any ideas what could be wrong?

  22. Hello,

    Great extension, I am using the latest version 0.3.7. Just one problem – once I log in successfully via Facebook and go to My Account in my Magento store, there’s a “Facebook Connect” button linking to http://……/socialconnect/account/facebook/. Clicking it leads to an error, and the system.log shows the following:

    2016-01-20T06:04:43+00:00 ERR (3): Notice: unserialize(): Error at offset 0 of 263 bytes in /app/code/community/Inchoo/SocialConnect/Model/Facebook/Info/User.php on line 69

    What am I doing wrong? Please advise.

    Thank you for your expertise.

    Best regards,
    Emiliyan

  23. Twitter is working well but Facebook and Google+ are not. The url on the button is not the redirect_uri I have specified. I don’t know why it is picking its own redirect_uri.

  24. Hi ,
    Its a great plugin you have developed. I would like to know if the profile images taken from facebook can be stored in the system?

  25. Hi,
    Thanks for great extension. Actually my facbook, google+, and twitter button working fine. Redirect to all application (fb, gplus, twitter) and after login redirect to my website but when i try to log in using facebook credential, it redirect to my website but customer not logged into my website. Google+ and twitter working fine.

    Don’t understand, why this is happen ?

    Thanks

    1. Hi, Did you find any solution? Same thing happening to my site. Please let me know the solution as soon as possible. Thanks in advance

  26. Hi,
    It’s showing error after account permission “Unspecified OAuth error occurred” in google login. How can I solve this error.

    1. It’s showing error after account permission “Unspecified OAuth error occurred” in google login. How can I solve this error. any body help

  27. After putting I’m having
    Fatal error: Class ‘Inchoo_SocialConnect_Model_Resource_Setup’ not found in C:\xampp\htdocs\ap\includes\src\Mage_Core_Model_Resource_Setup.php on line 234

  28. Dear Sir,
    I got the error while using the login via social connect. When I tried to login with google plus it gives me error as
    SQLSTATE[42S22]: Column not found: 1054 Unknown column 'e.inchoo_socialconnect_gid' in 'where clause'

    Please let me know how can I resolve it as early as possible.
    Waiting for your reply.

    Thanking You
    Ashik

  29. Please update your app/design/frontend/base/default/template/inchoo/socialconnect/customer/form/register.phtml file
    add <input type="hidden" name="form_key" value="getFormKey() ?>” /> without this the customer is not able to create an account

  30. Install plugin but get error like
    Could not retrieve a valid Token response from Token URL:

    This client application’s callback url has been locked
    /oauth/request_token?oauth_consumer_key=vnYZV77iMYBeEel0YoGpLZ4JC&oauth_nonce=a892a7c34f9fb7cc4822ae3317f47c8a&oauth_timestamp=1448611792&oauth_signature_method=HMAC-SHA1&oauth_version=1.0&oauth_callback=http%3A%2F%2F192.168.1.10%2Fshoper%2Findex.php%2Fsocialconnect%2Ftwitter%2Fconnect%2F&oauth_signature=Agxv8tn2UcbwzmxYcO39w8ZVCdI%3D

  31. Your guys are too amazing. Social connect is very useful so customer don’t have to remember so many password and hope you could have Magento2 Social connect soon. Thanks again!

  32. Hi, how are you? very good extension. It worked out of the box! Now i do want to change email template used as it seems to use defaults. Can you help me out and tell me where i can change it?

  33. After to delete my Test user, the Facebook Connect page worked fine. I think it was a database problem (versions conflict?).. i dont’t know.

    Thank you.

    1. Thanks for the update.

      I think everything is working fine, excep for the Menu Clientes -> Facebook Connect page… i got this error:

      There has been an error processing your request
      No token set, nothing to extend.

      I didn’t get this error on the older version.

      Can you help?

    2. Hi Marko, there seems to be some issues with 0.3.7 – I am now reverting my upgrade.

      The major one seems to be a 500 when logging in via Google.

  34. Hi,
    When I am trying to Login with facebook I am getting error: Sorry, could not retrieve your Facebook first name. Please try again. But google and twitter is working fine.
    How to resolve this.

    Thanks

  35. Find a bug of 2.0.6

    ./frontend/base/default/template/inchoo/socialconnect/customer/form/register.phtml

    missing form_key of 1.9.2 this will cause normal registration failure.

    fix:
    add form_key back.

    <input type="hidden" name="success_url" value="getSuccessUrl() ?>" />
                <input type="hidden" name="error_url" value="getErrorUrl() ?>" />
                <input type="hidden" name="form_key" value="getFormKey() ?>" />
    
    
  36. Worked like a charm!

    About Facebook login problem. I just did the fix what Petru said and works fine!

    Please, always update this extension! 🙂

  37. I’m using the 0.3.6 version. When I’m login with facebook it gives a error
    Fatal error: Call to a member function getId() on a non-object in app\code\core\Mage\Sales\Model\Quote.php on line 456.

  38. If a user email is not confirmed then login with facebook gives error. Any one has idea why and how to resolve this?

  39. Is this extension is working with code setup on local machine with some virtual host like magento.abc.local.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <blockquote cite=""> <code> <del datetime=""> <em> <s> <strike> <strong>. You may use following syntax for source code: <pre><code>$current = "Inchoo";</code></pre>.

Tell us about your project

Drop us a line. We'd love to know more about your project.