Facebook Connect Magento Extension

Facebook Connect Magento Extension

We’re proud to present free Facebook Connect Magento extension which enables customers fast and easy registration and login with their Facebook identity. And it’s just been updated!

Important

Facebook updated it’s authentication mechanism but so did we, so please update your extension to the newest version since older versions won’t work anymore.
Also, if you’re getting “An error occurred. Please try again later.” message in connect popup, you need to get new “App ID/API Key” from Facebook and enter it into Magento. Check your Application Secret along the way.

Download

Download Inchoo_Facebook-0.9.9.zip, extract files to appropriate place following directory structure and reload cache.
Latest pre-relase versions can always be downloaded on my github project page.

About

Facebook Connect Magento extension enables customers one click registration and login with their Facebook identity. It automatically registers new users and logs in existing ones.

Current extension is compatible with latest Magento CE 1.6, but also with older 1.5, 1.4 and 1.3.2.x versions. It’s using brand new Facebook thingies like open graph protocol and open source JavaScript SDK.

If you’re interested to see additional languages in future releases, help us translate it by following instructions.

Facebook App

For Facebook Connect to work you need to Setup Application on Facebook and obtain its App ID/API Key and Application Secret.

Use your store name as application name and read and accept terms of service. On second screen set App Domain and Site URL(under checked Web Site tab), both to the store domain where you plan to implement Facebook Connect. Save Changes. Other Connect settings are optional, but you might want to add store logo for example.

Magento Setup

Once you obtain two keys navigate to Magento Administration, copy/paste them to appropriate fields under Configuration->Customer->Facebook Connect, set Enabled to Yes and you’re good to go. If you’re updating from previous releases, you also need to Enable it to work.

Default template files (frontend/default/default/template/facebook/*) and layout (layout/facebook.xml) makes Facebook Connect work out of the box with default theme, but we tried to make customizations as easy as possible so all you need to do is add button or link with “facebook-connect” rel attribute set anywhere in the theme, static block or cms page, for example:

<button rel=”facebook-connect” class=”form-button” type=”submit”><span>Connect with Facebook</span></button>
<a rel=”facebook-connect”>Connect with Facebook</a>

Latest Changes

v.0.9.9
- Client and javascript compatible with new Facebook authentication changes.
- Event.fire changed to document object to avoid javascript conflicts.
- Asking for user_birthday permission from now on.
- Norwegian translation added thanks to Magnus Alexander.

v.0.9.8
- Version fix, licenses added, connect release.

v.0.9.7
- Estonian, Swedish, Czech, Turkish and Korean translations added thanks to Sir Mull, Andreas Karlsson, Pavel Hrdlicka, ea and COBAY.

411
Top

Enjoyed this post?

Subscribe to our RSS Feed, Follow us on Twitter and spread it to your friends!

Author

Ivan Weiler

Team Leader

Ivan is a team leader and a senior web developer. He gained lots of experience managing some of the most complex Magento projects we had at Inchoo.

Other posts from this author

Discussion 411 Comments

1 7 8 9
Add Comment
  1. Mitch

    Italian translation (it_IT)
    http://pastie.org/3265585

    Thanks for your work!

  2. Ian

    Any chance we’ll see something like this in Magento Go (the hosted version of the Magento product)?

    I’m debating as to whether to install the open source version or go with the hosted Go product. The tradeoff (like many of these products that offer hosted vs. installed versions) seems to be control vs. ease. While I’m technical enough to install and maintain the community edition, I’m the only technical person on staff right now. Don’t want to do any more work than I need to, and I already have a lot of work to do on crafting a custom front-end in the hosted version.

  3. Serks

    Ok this is getting really frustrating.
    Installed this on a brand new site and now i get this error….
    Facebook connection failed. Service temporarily unavailable.

    on magento 1.6.1.0

  4. uniquevisitor

    hi,

    thank you awsome module.

    This new version work multisite with some top level domain or only one fb connection accepted in settings/customer configuration (default config)? Or store and store view can use another facebook api key?

    thank you

  5. arun

    Hi,

    Installed this 1.6.1 CE. It works fine. I have an issue. If the email id is already registered with my store, it creates a new customer account with some junk email id. How can I prevent this?

    Also, I would like to can I put the customer any other group other than General when they register

  6. Hello Folks,

    Just for information:
    GoMage LightCheckout extension compatible with Facebook Connect Extension from Inchoo.net :)
    http://www.gomage.com/extensions/gomage-lightcheckout.html

  7. LELE

    I figured out that there is no Italian translations for this extension.
    If you wish I’ll provide you a cvs file to fix it.

    Best regards. LELE

  8. We have encountered a problem with a birthday convert. Facebook returns b-day in format mm/dd/yyyy. Everything is fine until your Magento shop uses this format as well. In our situation we have 2 websites: French and UK. UK has the same format so no problem there. Yet French store has format dd/mm/yy, which leads to strange behavior.

    The problem is with this line:

    $filtered = $this->_filterDates(array('dob'=>$dob), array('dob'));

    Mage_Core_Controller_Varien_Action::_filterDates() is a wrong choice, because it assumes that dates are in correct format already.

    What we have done to solve this problem was simply replace this part of Inchoo_Facebook_Customer_AccountController::connectAction() (around line 159):

    if(method_exists($this,'_filterDates')){
        $filtered = $this->_filterDates(array('dob'=>$dob), array('dob'));
        $dob = current($filtered);
     }
    

    with:

    $dob = $this->convertDate($dob);
    (...)
    private function convertDate($dateToConvert)
    {
        $format = Mage::app()->getLocale()->getDateFormat(Mage_Core_Model_Locale::FORMAT_TYPE_SHORT);
        return Mage::app()->getLocale()->date($dateToConvert)->toString($format);
    }
    

    It works fine with FR and UK stores. Haven’t checked with other ones.
    Hope this may help.

    Best regards,
    Kamil W?grzynowicz

    PS. Does your website not accept UTF-8 characters? Or do you use iconv to get rid of any special chars? I.e. Polish letter in my surname replaced by ‘?’.

  9. Nice will be if this extension will expand with Google+ Login Features but here we need to wait for Google+ API.

  10. What about a Twitter login feature?

  11. inerds

    i am getting an error after installation
    Fatal error: Call to a member function getBackend() on a non-object in
    /html/app/code/core/Mage/Eav/Model/Entity/Abstract.php on line 816

    can some one help ?

1 7 8 9

Add Your Comment

Please wrap all source codes with [code][/code] tags.
Top