382 comments

  1. I wasn’t able to login after putting all the API’s
    but after debugging code i found that.

    in google Controller

    $state = $this->getRequest()->getParam(‘state’);

    and

    Mage::getSingleton(‘core/session’)->getGoogleCsrf();

    are different so when it comes to below statement it just return from there without rendering code further from there.

    protected function _connectCallback() {

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

    }

    someday ago everything was working perfect but now it’s showing those different values for that..

    i don’t want to remove that Or check from there, so is there any way to solve this problem or resetting the google session object

    1. Hi Karan,

      I have faced same problem before few day ago, I have researched for this and finally i have got solution, that is due to login page ajax request call many times after login page load successfully like “http://example.com/customer/account/login/null”, you can checked on console, on may case it’s due to lazyload that many time call the login page request by ajax after page load successfully, if you have resolved this error your problem can easily solve.

      Thanks,
      Kinjal

  2. Hi thanks for this plugin, But i m getting error while login through this plugin, please have a look at the stack trace:
    : Uncaught TypeError: Argument 1 passed to Mage_Sales_Model_Quote::setCustomer() must be an instance of Mage_Customer_Model_Customer, null given, called in /var/www/html/plantlane/app/code/core/Mage/Checkout/Model/Session.php on line 166 and defined in /var/www/html/plantlane/app/code/core/Mage/Sales/Model/Quote.php:453
    Stack trace:
    #0 /var/www/html/app/code/core/Mage/Checkout/Model/Session.php(166): Mage_Sales_Model_Quote->setCustomer(NULL)
    #1 /var/www/html/app/code/core/Mage/Checkout/Model/Cart.php(119): Mage_Checkout_Model_Session->getQuote()
    #2 /var/www/html/app/code/core/Mage/Checkout/Model/Cart.php(546): Mage_Checkout_Model_Cart->getQuote()
    #3 /var/www/html/app/code/core/Mage/Checkout/Model/Cart.php(521): Mage_Checkout_Model_Cart->getItemsQty()
    #4 /var/www/html/app/code/core/Mage/Checkout/Block/Cart/Minicart.php(47): Mage_Checkout_Model_Cart->getSummaryQty()
    #5 /var/www/html/app/design/frontend/accessshop/default/template/checkout/cart/topcart.ph in /var/www/html/plantlane/app/code/core/Mage/Sales/Model/Quote.php on Line 453

  3. This plugin is working, but to login FB social login it’ss asking for birthday??? I suppose it’s sensitive user data and if I would choose on FB (because it requires app review) : Determines whether people are under 18, over 18 or over 21 ; then I must provide to facebook (review staff) the link where we collect this data; But on our store/user profile we don’t collect birthday date and I believe it’s needed to remove it from this extension and to leave only email address collection from facebook.

  4. Hi Marko,
    I am using your extension “Social Login” . It works great. But when I trying to customize it to render the login button in modal window and also there will be login default magento page with social login , if customer comes directly to login page after getting welcome email or forgot password.
    When I did the customization, I am not able to login. After click the button it redirects to login default magento page. It seems when I call button blocks twice, one in modal window and other in login default magento page, the extension breaks. When I disable any one of the button blocks, it works as it was.
    Please help me to resolve this issue.
    Thanks,
    VMT

  5. Array
    (
    [type] => 2
    [message] => vsprintf(): Too few arguments
    [file] => /home/thrilcpi/public_html/app/code/core/Mage/Core/Model/Translate.php
    [line] => 416
    )
    getting this error after installing this extension…wrked fine innitially but now after every new registration…it shows above error….

  6. Even 3 years old, this extention still helped me greatly to implement my own Social-Connect module.
    I started off using Inchoo’s but made so many adjustments in the end (most of them for “style” issues rather than functionality issues), that I decided to write my own from scratch. For everyone who wants to use Inchoo’s extention today, two things I remember that could help making it work more smoothly:

    Facebook API
    Like Santiago Glez already mentioned, https://graph.facebook.com/(v2.8/)me now expects field parameters. For that reason I changeed the $client->api call in FacebookController.php (within _connectCallback()) to:

    $userInfo = $client->api('/me', 'GET', array('fields'=>'id,first_name,last_name,email,...'));<code></pre>
    
    (I added the API version to all URIs in Model/Facebook/Client.php (OAUTH2_SERVICE_URI, OAUTH2_AUTH_URI, OAUTH2_TOKEN_URI). I didn't test if it's necessary functionality-wise by I think it's kinda useful considering future changes.)
    
    <strong>Twitter API</strong>
    Twitter didn't hand out their users' email addresses when this extension was written, now it does - well, with a little convincing at least and as long as the user has confirmed their email address. (<a href="https://dev.twitter.com/rest/reference/get/account/verify_credentials" title="Twitter Docs">read up here</a>).
    In order to get and use the user's email from Twitter I made a small change in TwitterController.php (within <em>_connectCallback()</em> again)  where the $client->api method is called:
    <pre><code>$userInfo = $client->api('/account/verify_credentials.json', 'GET', array('include_email' => 'true', 'skip_status' => 'true'));
    $fallbackEmail = sprintf('%s@twitter-user.com', strtolower($userInfo->screen_name));
    if(!isset($userInfo->email)) $userInfo->email = $fallbackEmail;

    (I was saving the $fallbackEmail to check at the function’s end if an address could be retrieved or whether the old standard notification about being unable to the address was necessary.)

    I don’t remember encountering any issues with the Google API.

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>.