Facebook Connect Magento Extension

Facebook Connect Magento Extension

This is free Facebook Connect Magento extension which enables customers fast and easy registration and login with their Facebook identity.

This extension isn’t actively updated anymore. For newer Magento you can use separate Social Connect Magento extension from my coworker Marko Martinovic, Inchoo.


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


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

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

– Version fix, licenses added, connect release.

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

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

Social Connect Magento extension Marko Martinovic
Marko Martinovic, | 399

Social Connect Magento extension

Google Connect Magento extension Marko Martinovic
Marko Martinovic, | 60

Google Connect Magento extension

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


  1. Hello guys,

    Can solve 90% of the problem
    He made the following changes:

    Replacing the 86 line of the file:

    app \ code \ community \ Inchoo \ Facebook \ controllers \ Customer \ AccountController.php

    With this code:

    $ StandardInfo = $ this -> _ getSession () -> getClient () -> call (“/ me”, array ( ‘fields’ => array (’email’, ‘first_name’, ‘last_name’, ‘gender’)) );

    Replacing the 152 and 198 line of the file:

    app \ code \ community \ Inchoo \ Facebook \ Model \ Client.php

    “SetParameterPost” to “setRawData”

    And in the file:

    app \ design \ frontend \ rwd \ default \ template \ facebook \ init.phtml

    I added the script from the beginning:

    jQuery.noConflict ();

    After making these changes the following happens:

    1- click connect with facebook
    2 appears the phrase “Failed to connect to Facebook”
    3 But if I click again login works
    4 So to solve my problem for now I changed the phrase “Failed to connect to Facebook” to “connection is established, click CONNECT WITH FACEBOOK to login”


    1. But tests performed and sometimes need to click more than 5 times for the connection to work, what do you connect with only one click?

  2. When I am using your app on my Magento 1.9, getting this error when trying to login using facebook :

    “Facebook profile can’t provide all required info, please register and then connect with Facebook for fast login.
    Please make sure your passwords match.”

    need help.

  3. If anyone is still having trouble with the error “Facebook connection failed. Email address is required.”. Find the line 86 in AccountController.php and replace it with $standardInfo = $this->_getSession()->getClient()->call(“/me”, array(‘fields’=>array(’email’, ‘first_name’, ‘last_name’, ‘gender’)));

  4. “I can’t use facebook login, when i click on sign in with facebook, facebook ask to fill up username / password.i filled up and it redirect to login page with message “Customer email is required”.”
    I have the same error as another guy. Any ideas why is this happening ?


  5. i have installed this extension, but its giving me an error. “Facebook connection failed.” i already do the correction. “setParameterPost” with “setRawData”. Still same error, Please help

  6. Hi.

    How to redirect to homepage after login.
    I managed to redirect to homepage after login for default Magento login, but not for this facebook connect.

  7. When I am using your app on my Magento 1.9, getting this error when trying to login using facebook :

    “Facebook profile can’t provide all required info, please register and then connect with Facebook for fast login.
    Please make sure your passwords match.”

    need urgent help.

  8. HI Ivan,
    When we click on facebook connect , in console we are getting the following error as given below

    TypeError: element.getAttribute is not a function
    return element.getAttribute(name);

    when we try

  9. Hello, I m trying this wonderful extension. It’s working perfectly for Google, Twitter login on
    But , i can’t use facebook login, when i click on sign in with facebook, facebook ask to fill up username / password.i filled up and it redirect to login page with message “Customer email is required”.
    May I Know How can i solve this problem Please.
    Thanks you so much ,developers.

  10. Hello,
    Thanks for the module.
    I am working on Inchoo_Facebook-0.9.9 on my site, i want to stop the auto login after logout with the facebook.
    Please help me.

  11. Hello,
    I want to add the “connect with facebook link” at the top header menu behind the login menu, for this in which files i will make changes.


  12. Mine is not working. I want it to show up on my homepage yet it is showing up underneath my products page, and it’s transparent and doesn’t look right at all. I don’ t get what I’m doing wrong.


  13. Hello Ivan i would like to know if version 0.9.9 is working with magento version Thank you for your time and help?

  14. Hello all,

    Small security bugfix of the extension was just released.

    I strongly suggest that developers check my last Github commit. If you’re using 0.9.9 version from this page, just re-download zip and deploy, it’s patched.

    Greets to Patrick for reporting the problem. Even though extension isn’t maintained anymore, I’m told that extension and parts of the code are still used here and there, so we did our best to help out.


  15. Hi guys,

    If you’re getting the “Facebook connection failed. Service temporarily unavailable.” on Magento 1.9 you need to edit the “app/code/community/Inchoo/Facebook/Model/Client.php” file and replace the “setParameterPost” with “setRawData”.

    It should be on lines 152 and 198.


    1. Hi I get the message Facebook connection failed. Service temporarily unavailable.
      I do the changes as you told but no success.
      My Magento version is
      Please Help

  16. Sorry, login failed to reach facebook servers. Please check your network connection or try again later.
    (Connection_ Failure
    Whatever the problem is written above. Please tell me the resolution of the problem. It stopped working suddenly, as it was working good before. So please help me. Even i have uninstall and reinstall the fb app again. But it is not working still……

  17. hi I installed and working well for first registration. if m trying to logging again it showing error like account not activated. what I have to do to solve this. please help. thanks in adv.

  18. Does anybody know how to remove the connect with facebook in the top links section? Any help is much appreciated.

  19. i want to install facebook connect to my magento store but not getting where to downlaod and not getting path where to install can anyone help me

  20. Hi, I’m having a trouble with facebook connect, after i log in the error message is “Facebook connection failed. Email address is required.”

    Please help me.


  21. Is anybody else receiving this error:

    Fatal error: Maximum execution time of 45 seconds exceeded in /home/rMYSITE/public_html/app/code/core/Mage/Core/Model/App.php on line 814

    I cant seem to fix it

  22. For those who are facing the “Fail to connect to facebook” problem:

    Add on the first line of /app/design/frontend/yourtheme/default/template/facebook/init.phtml:


    AND in /js/ search for js-1.x.x.min.js and add at the last line, to the bottom:


    This is a conflict with other modules or even your own template that uses jquery also.

  23. For those who are facing the “Fail to connect to facebook” problem:

    Add on the first line of /app/design/frontend/yourtheme/default/template/facebook/init.phtml:


    AND in /js/ search for js-1.x.x.min.js and add at the last line, to the bottom:


    This is a conflict with other modules or even your own template that uses jquery also.

  24. This is working awesome in my localhost machine, how this facebook login include in the checkout pages like your google connect plugin. or i have to just paste that button code in my check out pages.

  25. This is not working properly in Magento CE

    after login with facebook it is not redirecting to another page and entry is not made in magento. i mean to say after facebook login it does not login from magento.

  26. We’re testing this extension in our dev environment. I went through the process of installing with no problems, added the ID and secret key in config and even added var jQuery.noConflict(); to the init.phtml file and it is still not working. is not being rendered on the page that I can see. Any ideas?

  27. Hi..
    First of all thanks for this lovely extension.i am wandering that if somehow i able to get profile pic from facebook and display it at home page.Hope you will help me.
    Thanks in advance!

  28. Ivan, or anyone,

    Unfortunately I’ve had to uninstall this great extension. I have succesfully removed all extension files from the server, but I also want to remove all changes that were made to the database.

    I already removed the attribute [b]’facebook_uid'[/b] from the table ‘eav_attribute’. Does this extension make more changes to the database or is this all?

    Thanks in advance!

  29. Hi,
    Can somebody help me, i installed this app it’s working with default theme, custom theme doesn’t work, please help me!!! What i’m doing wrong??? :(((

  30. This worked out of the box on my site. I’ve been trying to get a Facebook login button to work for a while and thought I was going to have to figure it out from scratch but this module works great. I just had to fix my button (but it worked) –I was going to customize it anyway.


    Oh by the way I have Magento ver.

  31. Great extension. Our FB Connect button stopped rendering a few days ago. I assume FB has changed something? The connect link still works great but there’s no graphical button, just a hyperlink. Has anyone else experienced this? Thanks.

  32. Work great, only thing is if the extension give us a chance to customize the button connect then it will be perfect. For example it will support 10 buttons connect template and we can choose one to match with our template. Thanks

  33. @umair

    the file path to “init.phtml” is “/app/design/frontend/default/default/template/facebook”

    a added ” jQuery.noConflict();” and it worked!

  34. Hi

    This app is not working on Nokia Lumia 800 device. I’m using IE browser and I am getting a blank page while accessing oauth url.

    “https://m.facebook.com/dialog/oauth?display=touch&domain= ….”

    any suggestion.

  35. i have tried all but still showing error

    An error occurred. Please try again later.

    where is file ‘init.phtml’ in magento. i mean file path i can’t find where it is.

    please help me ASAP.

  36. This module is missing support for obscured facebook email addresses, like those from proxymail.facebook.com. We require valid email addresses, so is there a solution to this? If not, I’m writing up a patch so you can toggle non proxymail.facebook.com emails as a requirement.

  37. Hello, Neat post. There is an issue along with your site
    in internet explorer, may test this? IE still is the
    market chief and a large part of other folks will omit your magnificent
    writing due to this problem.

  38. Hi:
    I have made the facebook app & uploaded the app folder on the server. I’m not getting the facebook login. Can anyone help me through the steps.

  39. @Bogdan – yes, it happened to all of the Facebook apps that people have. They have some changes in how the API works and are letting people know that they must verify their apps work with said changes.

    If you do not accept the changes, they will still occur on the scheduled date: February 6, 2013 so it is wise for developers to test first.

    For this particular app (Inchoo Facebook Login), everything is working fine with the changes – at least for which is the one we use.

    Here is the roadmap for upcoming changes:

  40. Hello,
    Does anyone know what is this about?
    Today I received this facebook alert:

    “Your app, Login, needs to be updated for the February 2013 Breaking Changes”.

    Thank you

  41. Error Fixed. if somebody use jquery then it will give ‘Facebook connect failed’.

    use this line top of the ‘init.phtml’ file

  42. Error Fixed. if somebody use jquery then it will give ‘Facebook connect failed’.

    use this line top of the ‘init.phtml’ file


  43. Marlon – Please explain

    Just awesome! Works and verified for Hint: If it’s not working, don’t forget to add xmlns:fb=”http://www.facebook.com/2008/fbml”
    to <html

  44. THanks Ivan,

    Your extension working great.!
    just a question, , when i already logged in, the connect with fb link still visible., is it normal?, the link is redirected to customer account, i am expecting that it will redirect to a new window w/ my fb account

    Thanks much

    1. I think it’s depend on the template structure.We can validate the login status using follow snippets.

      helper(‘customer’)->isLoggedIn() ){ ?>


  45. We recently tested this extension and we having problem in Magento flash sales enabled web site(Magento Enterprise).

    When we enable Magento Access Restriction this extension not working as expected. Is this bug in this extension or can you guys fix this issue?

  46. Hi, This extension is amazing. For me in magento CE works fine even if i change the password i can log in by facebook or normal login.

    I just experienced na issue, in checkout sometimes i need to refresh page to facebook login works. btw it’s a fantastic extension.
    In my case é modded the extension to fit my needs.



  47. thanks Heaps for this. and other things has made building this site so much easier with your help has saved me many a time.

    One query is….

    if I log out (with magento) and then log back in… it automatically logs me back into site with same facebook.

    is there a way to get the login window to ask for username and password again incase user wants to login with different username/password.



  48. I am getting the same error as W.Rikkers,

    Fatal error: Call to a member function getBackend() on a non-object in /home/repear54/public_html/app/code/core/Mage/Eav/Model/Entity/Abstract.php on line 816

    PLEASE HELP, you have the best extension by far and I would really love to get it working.

    NOTE: I have it working perfectly on my test site, it is the exact same setup as the live site, just this error is appearing.

  49. I am getting Facebook connection failed. Temporariry service failed please help me out guys i am using magento 1.7 release

    Thanks in Advance

  50. How does this work exactly. I mean, I’ve done this personally on other sites as a customer. But from a business side, does the store import customer data from FB and create an account using that data? What if the customer decides to stop using fb, will they still be able to access my store using their email ?

  51. I am unable to login with facebook. it will work only my facebook account. when i am inserting my facebook account it will work fine but when i enter another facebook account than it will not work.. i think it has Facebook API configuraqtion problem. i follow the given istruction for creating facebook api.. please help about this…

  52. Hi,

    I got the same problem of Coen and Sachin, “Facebook connection failed.” error when i try to login with a facebook account.

    Someone have a solution please ?


  53. Hi Ivan,

    I’ve installed your Facebook Connect extension on my website (Magento and am facing some problems.

    1. if i use the button for a new account without having Facebook open in one of my browser tabs, i get the following message: “Facebook Connection Failed”
    2. if i use the button for a new account with having Facebook open in one of my browser tabs. I can login/register perfectly.
    3. if i login/register from the same computer with another Facebook account i login with the wrong account. (after clear history an browser cache)

    Can you please advise me how to solve this!

  54. I could’t get it to work, when i clicked the link there was no popup. Instead it refered me directly to the login page… I found out when jQuery was removed from my code the button|link started working and the popup showed up.

    I found out that my installation of jQuery wasn’t right.

    It helped me out =)

    Thanks for the plugin,

  55. I’m getting the error

    Fatal error: Call to a member function getBackend() on a non-object in /home/smartass/domains/smartass.keytoe.nl/public_html/app/code/core/Mage/Eav/Model/Entity/Abstract.php on line 816

    What am I doing wrong?

  56. I have integrated this extension, Can see connect to facebook near chat , where user can login. I will make my site for online games products. But when I click on link it tooks me account page with Facebook connection failed. Any help!

  57. When i integrate this extension, it display error “Facebook connection failed.”

    Please tell me solution

  58. Extension is working all good at localhost but at the draft site it throws an exception. “Facebook connection failed. Service temporarily unavailable.”

    I tracked this line at “AccountController.php” at line 92 but I cannot find the reason why is it going there. Can you please help me with this.

    Any help would be greatly appreciated.

    Thanx in advance

  59. @Chanda, and everyone else who has got a button that is not clickable.

    Check your themes 1column.phtml, 2columns-left.phtml etc. and make sure that they are not missing this critical line: getChildHtml(‘after_body_start’) ?>

  60. I am running magento version 1.7.0 and set up the magento connect version 1.0.0 using the files available on github.

    I have followed the instructions and pasted the connect code..I am getting the button but the button is not clickable.. I think,the facebook init files are not loading it..Once I am taking view source of the page, I can not see the code related to facebook…

    Can you guys help me out here ? Thanks in advance.

  61. Hey Ivan,
    First of all thanx for the great work mate. I’ve implemented your extension in many number of sites and never faced the problem. Except until now 🙂

    I have installed your extension here: http://draft.hungermunch.net/

    The same version of the site is at my localhost too where I do my development.

    Your extension is working all good at localhost but at the draft site it throws an exception. “Facebook connection failed. Service temporarily unavailable.”

    I tracked this line at “AccountController.php” at line 92 but I cannot find the reason why is it going there. Can you please help me with this.

    Any help would be greatly appreciated.

    Thanx in advance

  62. If I would like all the customer that login using facebook to be put in a specific customer group, is that possible?

  63. Just awesome! Works and verified for Hint: If it’s not working, don’t forget to add xmlns:fb=”http://www.facebook.com/2008/fbml”
    to <html 😉

  64. Okay, I’ve found the following solution for the URL issue…

    In admin I’ve created a permanent URL-rewrite for my store view:

    Requested Path: CMS/INDEX/INDEX/
    Target Path: INDEX.PHP
    Redirect: Permanent (301)

    I’m not sure if this is the best way to do this, but it at least brings customers back to the “same homepage” after login with Facebook Connect…

    Suggestions for better solutions are welcome!

    Thanks, Matthijs

  65. I have this return URL issue: Facebook connect is adding information to the return URL or changing it.

    For example: Once the customer has logged in from the homepage EXAMPLE.COM and has accepted the fb-connection, he or she is redirected to: EXAMPLE.COM/CSM/INDEX/INDEX

    This is not the right page, it’s layout isn’t the same as the homepage…. (only header and footer are the same)

    If logged in from a product page, let’s say EXAMPLE.COM/PRODUCTNAME.HTML the customer is redirected to EXAMLE.COM/CATALOG/PRODUCT/VIEW/ID/298/

    This is the correct page, but I don’t like this URL…

    Anyone know how to get this right? Especially the homepage issue?

    Help is appreciated!

    Thanks, Matthijs

  66. Hello Ivan,

    Thanks for sharing the code.
    My magento version is, I uploaded the files to theme location, it is showing the “Connect with facebook” link when i clicked it is redirected to 404 page.

    I copied the same files to default and base folders also same error.

    It is not loading the facebook/*.phtml files.

    Please help me on that, Your help appreciated.

    Thank You

  67. Hi Hisham

    Right after the opening body tag, you should see the facebook script which is located in init.phtml. Either the file is missing or is not declared in the layout file? Ie:

  68. Help! – New on Magento
    I downloaded the plugin, extracted and uploaded on the server.
    I can’t see “Facebook Connect” under Configuration -> Customer

    Any idea what am I doing wrong ?

  69. Hi Ivan

    Thank you for publishing your work, it’s been very helpful. We have managed to get the extension working however I noticed that when I log in with my Facebook credentials then log out from the my account section, and then head back to the log in page and hit the facebook link again, I am automatically redirected to the my account section without being prompted for any log in details. This is stopping us from releasing this extension, as we definitely can’t have people using the same computer to be able to log in to each others’ account.
    Has anyone noticed this by any chance?

  70. In locahost it isfine but it is showing error in my live server.
    the error is
    [01-Jul-2012 10:21:49] PHP Fatal error: Call to a member function isEnabled() on a non-object in /home/hungermu/public_html/draft/app/code/community/Inchoo/Facebook/Block/Template.php on line 36

  71. hi , i am using the latest version of Inchoo facebook extension. It is working in my localhost. It works fine . but when i deployed it in the server it shows the error “Facebook connection failed. Service temporarily unavailable.”. I have also extended the customer login to use captcha in it. I am usign magento 1.6.2.

  72. I am also getting the error “An error occurred with . Please try again later.”
    Copied the files to my own theme, but does not help….does anyone have a solution?

    PS. Magento

  73. my problem got solve… in your site if you are working with you own template , then put this file in you templates corresponding directroy….

  74. i have overwrite app folder and put

    “Connect with Facebook
    Connect with Facebook

    i have put this code in


    when click on connect with facebook it will not open
    facebook window???

    why it is no opening window..

    am using 1.6.2.vesion

    please help me out!!!

  75. i have follow your instruction, i overwite app folder , i endbaled facebook setting from admin…

    i have put these line to my login.phtml file ,i generated the button , but when i clicked on that,i am not getting window to connect with facebook , am getting error …Invalid login or password.
    which is set for normal login.

    please anyone help me???

    Connect with Facebook
    Connect with Facebook

  76. is there a 1.7 fix?
    Getting this error;
    Fatal error: Class ‘Inchoo_Facebook_Helper_Data’ not found in app/Mage.php on line 546

  77. Hi!
    We are planning to use your application and configure everything correctly and I get the error that is temporarily unavailable.
    What can we do to correct it?

  78. Hello
    Thanks for your hard work, nice module.
    It works for me – I can log in, but is possible create an order with this module?
    That feature not works for me, on checkout system redirect me again on login page…
    Best regards

  79. Not working for me on Magento

    May be the problem is that frontend files (phtmls and the xml) are not being called. Copied the files from app/design/frontend/default/default to app/design/frontend/base/default and still not working.

  80. A follow up – I found that by disabling a the Facebook feed extension on my website made the Inchoo FB connect start working. Just gotta figure out how to make them work together. I am using 1.0.0 which should have the improved segregation.

  81. I have the same problem as suplemen kesehatan on Magento 1.7 – everything appears fine but the Connect with Facebook button doesn’t do anything.

  82. I downloaded the latest source from github, and when i install i get the following errors :

    CONNECT ERROR: Package file is invalid
    Invalid package name, allowed: [a-zA-Z0-9_-] chars
    Invalid version, should be like: x.x.x
    Invalid stability
    Invalid date, should be YYYY-DD-MM
    Invalid channel URL
    Empty authors section
    Empty package contents section

  83. I cannot seem to get this to show up in the admin on magneto version Has anyone had this working on this installation?

  84. @Alex, md nzrul islam – i had the same error message but can’t really say what fixed it.. all i did was to delete the app and recreate, update key on magento backend. good luck.

  85. I figured it out. Some of the files needed to be in my own directory theme, not sure which one(s) actually did the trick, I might leave it as it is for now

  86. I have installed this and added:
    Connect with Facebook
    but all this gives me is something that looks like a hyperlink but it is not clickable.

    @eCommistry Is that code you posted missing a lot of stuff? Looks like it was stripped out when you posted?

    I have v1.0.0 installed and a custom theme.

    I tried putting just a ‘.’ as the link in the footer so I can get this working on a live site. Do I need to do anything special because I am using a custom theme of can I just put this link anywhere?

  87. Hopefully you should all be running the 1.0.0 version of Ivan’s code now. This has improved segregation to avoid a lot of integration issues with other FB code running on site.

    One major thing to consider is that the Helper Class is now “inchoo_facebook”. So you will need to update any of your hard links, especially if you also run with GoMage Light Checkout, to:

    <a rel="facebook-connect" title="__(‘Login with Facebook’);?>” href=”helper(‘inchoo_facebook’)->getConnectUrl() ?>”>__(‘Login with Facebook’);?>

    Hope this helps some of you folks….

  88. hey guys, when i test login get error, “Facebook connection failed. Service temporarily unavailable ” how can i fix it, thanks!!!.

  89. When I click the button login with facebook, opens the one popup screen and directs it to the standard error of magento. When I look at the error in /var/report I get the following errors:

    a:5:{i:0;s:37:”Invalid attribute name: facebook_uid.”;i:1;s:1665:”#0 /var/www/virtual/projeto/html/loja/app/code/core/Mage/Eav/Model/Entity/Collection/Abstract.php(1156): Mage::exception(‘Mage_Eav’, ‘Invalid attribu…’)
    #1 /var/www/virtual/projeto/html/loja/app/code/core/Mage/Eav/Model/Entity/Collection/Abstract.php(1241): Mage_Eav_Model_Entity_Collection_Abstract->_addAttributeJoin(‘facebook_uid’, ‘inner’)
    #2 /var/www/virtual/projeto/html/loja/app/code/core/Mage/Eav/Model/Entity/Collection/Abstract.php(292): Mage_Eav_Model_Entity_Collection_Abstract->_getAttributeConditionSql(‘facebook_uid’, ‘1138000505’, ‘inner’)
    #3 /var/www/virtual/projeto/html/loja/app/code/community/Inchoo/Facebook/controllers/Customer/AccountController.php(45): Mage_Eav_Model_Entity_Collection_Abstract->addAttributeToFilter(‘facebook_uid’, ‘1138000505’)
    #4 /var/www/virtual/projeto/html/loja/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Inchoo_Facebook_Customer_AccountController->connectAction()
    #5 /var/www/virtual/projeto/html/loja/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(253): Mage_Core_Controller_Varien_Action->dispatch(‘connect’)
    #6 /var/www/virtual/projeto/html/loja/app/code/core/Mage/Core/Controller/Varien/Front.php(176): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
    #7 /var/www/virtual/projeto/html/loja/app/code/core/Mage/Core/Model/App.php(304): Mage_Core_Controller_Varien_Front->dispatch()
    #8 /var/www/virtual/projeto/html/loja/app/Mage.php(596): Mage_Core_Model_App->run(Array)
    #9 /var/www/virtual/projeto/html/loja/index.php(88): Mage::run(”, ‘store’)
    #10 {main}”;s:3:”url”;s:47:”/loja/inchoo_facebook/customer_account/connect/”;s:11:”script_name”;s:15:”/loja/index.php”;s:4:”skin”;s:7:”default”;}

  90. Hi

    In our site, new users are not able to login\register to the site using FBlogin. But it works fine for old users. We are using inchoo plugin. Whether we need to update something?

    Please help me if anyone knows the solution.

    Thanks in Advance

  91. I added Netforts Tipps into the scripts but still get a connection failed.

    Can someone help me? Want to enable Facebookmembers to login to my website http://www.gutscheindeals24.de .

    Think the Api etc. is fine, maybe someone can check my settingst etc.

    Can contact me at info (@) gutscheindeals24.de

    Would be so glad if someone helps me because I’ve be spending so much time with this sh** 😉

  92. Hi again,

    Should pay attention to some details. Yes works now.

    Thank you “Netfort”

    Significant changes in some custom themes files.

    3columns.phtml applied, the control panel, using three different columns but the theme selected.

    aply code all phtml file.. work now
    thank you

  93. Please communicate with me? unfortunately still not working.
    ayhan.ergezen @ gmail.com e-mail or msn

    Ps: Admin was incorrect in a previous comment. please delete.

  94. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->getLang() ?>" lang="<?php echo $this->getLang() ?>">
        <?php echo $this->getChildHtml('head') ?>
    <?php echo $this->getChildHtml('after_body_start') ?>
    <body <?php echo $this->getBodyClass()?'class="'.$this->getBodyClass().'"':'' ?>>
        <div class="no-display">
            <h4>Skip to Store Area:</h4>
                <li><a href="#main"><?php echo $this->__('Skip to Main Content') ?></a></li>
                <li><a href="#col-left"><?php echo $this->__('Skip to Left Column') ?></a></li>
                <li><a href="#footer"><?php echo $this->__('Skip to Footer') ?></a></li>
    	<div class="wrapper">
    		<div id="nav-top">
    	<?php echo $this->getChildHtml('nav.top') ?>
        <div class="container">
            <?php echo $this->getChildHtml('header') ?>
            <div class="outline-creator">
                <!-- <div class="toplinks-bar">
                    <?php  echo $this->getChildHtml('store_language') ?>
                    <strong><?php echo $this->getLayout()->getBlock('header')->getWelcome() ?></strong>
                    <?php echo $this->getChildHtml('topLinks') ?>
                <div class="search-bar">
                    <?php echo $this->getChildHtml('breadcrumbs') ?>
                    <?php echo $this->getChildHtml('topSearch') ?>
                </div> -->
                <div class="middle layout-2columns">
                    <div class="col-left sidebar" id="col-left">
                        <?php echo $this->getChildHtml('left') ?>&nbsp;
                    <div class="col-main" id="main">
                        <?php echo $this->getChildHtml('global_messages') ?>
                        <?php echo $this->getChildHtml('content') ?>
            <div class="footer" id="footer">
                <?php echo $this->getChildHtml('footer') ?>
        <?php echo $this->getChildHtml('before_body_end') ?>
            <?php echo $this->getAbsoluteFooter() ?>
  95. /app/design/frontend/default/hellomini/layout/inchoo/facebook.xml ok…
    /app/design/frontend/default/hellomini/template/inchoo/facebook/init.phtml ok…
    /app/design/frontend/default/hellomini/template/inchoo/facebook/login.phtml ok…
    /app/code/community/Inchoo/Facebook/ (Block, controllers, etc, helper, sql) ok…
    /app/etc/modules/inchoo_Facebook.xml ok…
    /app/locale/ language files ok….

  96. page.xml add

    <block type="core/text_list" name="after_body_start" as="after_body_start"/>


    <block type="page/html_header" name="header" as="header">.....</block>

    ..column.phtml add

    <?php echo $this->getChildHtml('after_body_start') ?>


  97. hi,
    thank you for such a awesome module.

    it is working fine with my magento setup.
    what i need is, i created a new php file outside my magento/app folder like login_custom.php and i want to run my facebook – connect module from there. is there any way to do that, for ex. my php file will look like this

        $mageFilename = 'app/Mage.php';
        require_once $mageFilename;
        $app = Mage::app();
    $layout         = Mage::getSingleton('core/layout');
    $block_header   = $layout->createBlock('core/template')->setTemplate('facebook/init.phtml');
    echo $block_header->toHtml();
    <a rel="facebook-connect">Facebook Connect</a>

    something like that.

    please suggest soon

  98. I made the following additions, but still does not work as ..

    When using the default theme, special theme running, but does not work.


    <body <?php echo $this->getBodyClass()?'class="'.$this->getBodyClass().'"':'' ?>>
    	<?php echo $this->getChildHtml('after_body_start') ?>
        <div class="no-display">
            <h4>Skip to Store Area:</h4>


    <block type="core/text_list" name="after_body_start" as="after_body_start"/> 

    correct? Continuously for a week trying to resolve this issue. Contribute to the solution has no production of the component manufacturers. Indeed, a very big waste of time.

  99. Ok – solution found! This is ONLY because we were trying to move a 1.3 template to a 1.6 build. First triple check all your FB setups are correct.

    1. page.xml
    Add this block above page/html_header block:

    Page Top

    2. in your 2columns-left.phtml (or whichever you are using)
    Add this after your opening tag:
    getChildHtml(‘after_body_start’) ?>

    FB Connect needs this block declared to function.

  100. Fixed my main issue of duplication. Client had installed a seperate extension that was also firing on facebook.xml … grrrr…

    Still getting consistent “Facebook connection failed.” error though…

  101. Hi Guys,

    Had a few issues, hoped you could help.

    We’re rebuilding a 1.3 site on 1.6, and just put FB Connect here: http://test.halloweencostumedepot.com/

    Had 2 problems:

    1 – the topLinks creates it twice (in the ‘first’ and ‘last’ as is the only TopLinks item we have). Have eliminated one through CSS, but you’ll see it in firebug.

    2 – the link goes to a 404 page instead of triggering FB.

    Any ideas??


  102. Hi Guys. Heard great things, but struggling to get this to fire.

    Is installed here (all the AppID & Admin stuff setup): test.toggle.co.nz as:

    Facebook Login

    Just doesn’t do anything… any clues team?


  103. As [b]Kamil Wegrzynowicz[/b] says, date of birth comes from Facebook in this format: mm/dd/yyyy. In my store, I have the locale set to es_MX.So, I fixed it as follows:

    Open AccountController.php within app/code/community/Inchoo/Facebook/controllers/Customer/ folder
    Under the line 157:

    $dob = $standardInfo['birthday'];

    add two lines with this:

    $_aDob = explode('/', $dob);
    $dob = $_aDob[2].'-'.$_aDob[0].'-'.$_aDob[1]; // to get yyyy-mm-dd format

    Inside the

    if (method_exists($this, '_filterDates')) {

    , cancel the line

    $dob = current($filtered);


    # $dob = current($filtered);

    That’s all.

  104. hi ivan..
    upload latest versiyon extension OK…

    Configuration>Costumer>Facebook Connect Set Enable OK..

    Facebook App Setting OK…

    Magento Front End > Click to login> Login page: Connect With Facebook button not working!

  105. hi, ive uploaded the files, but does anyone know why i get this error when i try to access config>customers>customer config :

    Fatal error: Class ‘Inchoo_Facebook_Helper_Data’ not found in /home/furni978/public_html/app/Mage.php on line 516

    appreciate any help

  106. @Niranjan
    you’ll never get FB password of the user’s account into your database. With this module they can just login their facebook account then go to your site. This module doesn’t set the account created with the same password as FB.

  107. Hello Ivan, I used this for testing and worked fine as far as the registration of FB user in my database is concerned but the issue is the password that is set for the user is not same as that of the users FB account so user can not login with my websites account that has been created…

    Thanks in advance..

  108. Forget it … I forgot to update the init.phtml and set the fb-referer cookie 😉 Now it works!!! Thanks a lot, dude!

  109. Hi.

    The new version 1.0.0 also works with the IE so my main problem is solved but now I have a new one: the redirect doesnt work anymore as exspected. After logging in I always get directed to /customer/account/ instead of the page where I was before.

    Is anyone able to reproduce this and/or knows how to fix it?


  110. On Magento 1.6.1 I’m unable to use this extension:

    it fails always @
    if(!$this->_getSession()->validate()) {
    $this->_getCustomerSession()->addError($this->__(‘Facebook connection failed.’));

    returning “Facebook connection failed”.
    Wondering where I’m wrong!!

  111. @ed
    i used another work around as the call(‘/me/feed’ … doesn’t work. i downloaded facebook sdk (https://github.com/facebook/php-sdk) copy facebook.php and base_facebook.php to your /lib and drop it there. then rename facebook.php to Facebook.php

    i am using Inchoo Faceboko 0.9.9

    before you can post you have to include publish_stream premission at app/code/community/Inchoo/Facebook/Block/Template.php on function getRequiredPermission() add the publish_stream to the list so in the init.phtml on the scope field will have the required permission

    in AccountController.php on line 180 after the $customer-save()

    // @author Kent K. Yip
                // post message to wall on facebook
                // Facebook PHP SDK
                $fb = new Facebook(array('appId' => Mage::getSingleton('facebook/config')->getApiKey(),
                                         'secret' => Mage::getSingleton('facebook/config')->getSecret()
                $user = $fb->getUser();
                    try {
                        $r = $fb->api('/me/feed',
                                            'message'=> $standardInfo['first_name'] .' is now a VIP at BeMyCity'
                                    'message'=>$standardInfo['first_name'].' is now a VIP at BeMyCity'
                    } catch(Mage_Core_Exception $e) {
                                $this->__('Facebook connection failed.') .
                                ' ' .
                                $this->__('Service temporarily unavailable.')
                    }// end try
  112. Nice one Ivan,

    May I suggest removing the connect with facebook link once the user is logged in. Easy update to the XML

      <reference name="top.links">
        <action method="removeLinkByUrl">
          <url helper="facebook/getConnectUrl"/>
  113. Hello

    I have installed and set up the plugin on magento as per instructions above. I have copied the layout and template files into my theme and everything seems to work correctly. However when the user logs into facebook it either redirects to a blank page (IE) or replaces the popup login form with a blank window (Chrome). It sounds a bit like this http://forum.developers.facebook.net/viewtopic.php?id=108244. Any ideas?


  114. Couple of post above I have written that there is something wrong with _filterDates() function. I also proposed a solution.
    That solution does not fix the problem though (too low on tests), so finally I have changed only _filterDates() method to force using American date format for input normalization.

    That seems to work fine.

  115. I tried to post a message to Facebook if users are using this button. However, the “stream.publish” function is deprecated, instead we should use the “/me/feed”, “post” method.
    Can the author point me to the right direction? I am not able to get a valid access_token to post the message.

  116. Hello,

    Just want to start off by saying this extension is the BEST. The ease of installation and functionality makes me feel like a pro lol. It just works.

    I’ve successfully installed this extension and I am able to link it to a separate image/button.

    My question is how can I remove the “Connect with Facebook” link from the top links without hacking away at my html/phtml files. I’ve attempted to use a local.xml file within theme/layout.

    <?xml version="1.0"?>
    <layout version="0.1.0">
    		<action method="removeLinkByUrl"><url helper="facebook/customer_account/connect"/></action>

    Any and all help is greatly appreciated.

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

  118. 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):

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


    $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 ‘?’.

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

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

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

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

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

  124. Just launched a new design for my website, but now I get the ‘Facebook connection failed’ error.
    All the settings are okay.

    I tried to install the 1.0.0 version, but then my website didn’t work anymore!

    Please help me!

  125. Also (sorry for the double comment!), I would like to replace the ‘Connect with Facebook’ button at the top of my site with a Facebook Connect image.

    How do I go about that?

    Again, thanks.

  126. Hi, I have loaded the extension and all is working great – thanks!

    How can I add a small Facebook logo next to the text ‘Connect with Facebook’ on the logon page? The logo will make this option more visible to users.


  127. Anyone know how to translate this error message:

    The TAX/VAT number is required.

    When someone come from the login it gives a error that is translated, but this error is not. I tried by the inline translate and don’t work either.

  128. @Revathi
    Welcome to my world 🙁
    Tried everything, eventually disabled the whole extension.
    If you figure it out let me know.

  129. Hello, just updated to your new version of the plugin and I keep getting the following message “Facebook connection failed.”

  130. Hi there,
    I have installed it. It shows up on the backend, I have it all set up but nothing happens in the front end. I was using BVLG solution but it has stopped working as well.

  131. @Dennis

    Tried changing my Session Validation settings and checked all other extensions……still not working. Think i’m just going to have to let it go.

    Thanks for trying to help anyway

  132. Hello all,

    I just pushed version that resolves mentioned IE9 problem to my github https://github.com/ivanweiler/Inchoo_Facebook but I still need to test if everything is working on Magento older than 1.5. Feel free to download and test if you like, that’s the only major change.

    Thanks everyone for reporting IE problem !!

    I’m working on a new version, but plan is to move everything under inchoo namespace for v.1.0.0 release (to be more compatible with other modules), so it may take some time 😉


  133. @Serks
    I dont know if that is the problem, but my Session Validation Settings are different: All No except “Use SID on Frontend”.

    Have you tried to diasable other extensions under “Advanced” that might interfere?


  134. @Dennis
    Thanks for taking the time to try and help me, i really appreciate it.

    I tried everything you said (except create a new app, ill leave this as a last option as I can’t see it being the problem but I will try if I have to as a final resort).

    After looking at where this ‘Facebook connection failed.’ error message comes from…there’s 3 functions in

    Line 26: $this->_getCustomerSession()->addError($this->__(‘Facebook connection failed.’));
    Line 88: $this->__(‘Facebook connection failed.’) .
    Line 99: $this->__(‘Facebook connection failed.’) .

    It seems that from all 3 times that this error comes up its got to do with session (probably an obvious observation)
    so maybe its my ‘Session Validation Settings’ in magento…heres how I have it…

    Validate REMOTE_ADDR: No
    Validate HTTP_VIA: No
    Validate HTTP_USER_AGENT: Yes
    Use SID on Frontend: No

    could any of these be the problem?

    Thanks again

  135. @Serks:
    I compared your settings to mine.
    This is what I would suggest:
    Try using a single word App name
    Try using a namespace
    Try leaving AUTH DIALOGUE SETTINGS all empty

    Try the following ADVANCED SETTINGS


    Remove Deprecated APIs: Enabled
    Stream post URL security: Disabled
    Timezone-less events: Enabled
    Upgrade to Requests 2.0: Enabled
    Require manage_notifications: ENABLED
    Use Titan to handle gigaboxx requests: Disabled
    Include recent activity stories: Disabled
    New mailbox backend: Disabled
    Encrypted Access Token: Enabled
    Requests 2.0 Efficient: Enabled
    Enhanced Auth Dialog: Enabled
    page_hours_format: ENABLED
    Graph Batch API Exception Format: ENABLED

    Social Discovery: Enabled

    Do everything step by step. Empty cache after each change and before testing.
    Double check App ID and Secret!

    If nothing works, try with a new facebook App.

    Good luck!


  136. @Dennis: Thanks for your suggestion. I tried it but no luck. Heres all my app settings…let me know if you see anything that could be the problem….


    App Display Name: My Name
    App Namespace: BLANK
    Contact Email: myemail@gmail.com
    App Domain: mywebsite.com.au

    Not using cloud services.

    Website: http://www.mywebsite.com.au/
    Rest is blank


    Just got ‘Headling’ abd ‘Description’ filled here….
    everything else is blank and I have no ‘Aggregation Previews’ and I have no ‘Authentication Referrals’.



    Remove Deprecated APIs: Enabled
    Stream post URL security: Disabled
    Timezone-less events: Enabled
    Upgrade to Requests 2.0: Enabled
    Require manage_notifications: Disabled
    Use Titan to handle gigaboxx requests: Disabled
    Include recent activity stories: Disabled
    New mailbox backend: Disabled
    Encrypted Access Token: Enabled
    Requests 2.0 Efficient: Enabled
    Enhanced Auth Dialog: Enabled
    page_hours_format: Disabled
    Graph Batch API Exception Format: Disabled

    Social Discovery: Enabled

    Everything else is blank and I haven’t started anything with Open Graph.

    Also…On my website I have the following lines in my head.phtml file…

    <html xmlns:fb="http://www.facebook.com/2008/fbml">
    <meta property="fb:admins" content="######">
    <meta property="fb:app_id" content="#########">

    ….could these be an issue? I think I put these in to get facebook comments and like buttons to work a long time ago.
    I have tried removing them and disabling all other facebook things on my site but it still just shows the ‘Facebook connection failed.’ message.
    Its very frustrating.

    any ideas??
    thanks in advance

  137. @Serks: Mine was also working fine before upgrade. I solved the problem by going through the facebook app settings (e.g. site, url, etc.) again and setting them to a minimum. Try it.

  138. Im having the same problem as @Nikola Ristivojevic

    Facebook connection failed.

    But im sure its not because of interfering facebook javascripts or templates because it used to work before the upgrade.

    Could it be because of HTTPS issues? maybe it will work if its unsecure?

    Any help would be great thanks

  139. @Tomas

    I read it.

    My point is: two FB extensions could intervere. And that’s too bad. Nottin more, nottin less.

    Could there be a workaround?

  140. And your point is? Two extensions having part of functionality similar and they interfere? Really, what dod you expect? Mind reading?

  141. Hi, I solved my problem. I am not sure but it might have been the settings of the FB App (Site or URL). So, double check 😉 Thanks.

  142. Hi, I get an error message “facebook connection failed”.

    @Nikola Ristivojevic: Maybe you can give me a hint on how you’ve solved your problem.

    @Ivan: Can you help? There is no other FB javascript on the page, checked layout and template files, the cache and key/secret settings. Facebook debugger has also no complains…

  143. …and also when i hit the back button it takes me to the right (account) page and I’m logged in already.

  144. I’m also getting blank page on IE9 after click on the button and enter credentials in the pop up window.

  145. Hello,
    I have this extension but it conflict with jQuery on my website.
    Can you help to resolve this issue?
    Thank you!

  146. Hello,
    I just install your extension and it works well on websites that do not use ssl.
    But on websites with ssl, each login with any facebook account, always show magento admin user, not the facebook user.
    Whether there are my settings that are less ?
    Thank you.
    ~ Dewi

  147. Fb coonect work fine for me previously but now get error
    “OAuth2 specification states that ‘perms’ should now be called ‘scope’. Please update.” and not loggin pop-up came..so tell me whats error it ?

  148. @Simon Young: It seems extensions setup scripts weren’t triggered, try refreshing your Magento cache, most likely that’s the problem.

  149. Hi

    After installing, clearing down all caches and restarting my server I still get the following error regarding an invalid attribute facebook_uid – I’m using the latest version downloaded from Github an hour ago:

    a:5:{i:0;s:37:”Invalid attribute name: facebook_uid.”;i:1;s:1753:”#0 /home/xxx/xxx/xxx/public/app/code/core/Mage/Eav/Model/Entity/Collection/Abstract.php(1166): Mage::exception(‘Mage_Eav’, ‘Invalid attribu…’)
    #1 /home/xxx/xxx/xxx/public/app/code/core/Mage/Eav/Model/Entity/Collection/Abstract.php(1255): Mage_Eav_Model_Entity_Collection_Abstract->_addAttributeJoin(‘facebook_uid’, ‘inner’)
    #2 /home/xxx/xxx/xxx/public/app/code/core/Mage/Eav/Model/Entity/Collection/Abstract.php(292): Mage_Eav_Model_Entity_Collection_Abstract->_getAttributeConditionSql(‘facebook_uid’, ‘770358975’, ‘inner’)
    #3 /home/xxx/xxx/xxx/public/app/code/community/Inchoo/Facebook/controllers/Customer/AccountController.php(38): Mage_Eav_Model_Entity_Collection_Abstract->addAttributeToFilter(‘facebook_uid’, ‘770358975’)
    #4 /home/xxx/xxx/xxx/public/app/code/core/Mage/Core/Controller/Varien/Action.php(420): Inchoo_Facebook_Customer_AccountController->connectAction()
    #5 /home/xxx/xxx/xxx/public/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(253): Mage_Core_Controller_Varien_Action->dispatch(‘connect’)
    #6 /home/xxx/xxx/xxx/public/app/code/core/Mage/Core/Controller/Varien/Front.php(176): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
    #7 /home/xxx/xxx/xxx/public/app/code/core/Mage/Core/Model/App.php(341): Mage_Core_Controller_Varien_Front->dispatch()
    #8 /home/xxx/xxx/xxx/public/app/Mage.php(627): Mage_Core_Model_App->run(Array)
    #9 /home/xxx/xxx/xxx/public/index.php(81): Mage::run(”, ‘store’)
    #10 {main}”;s:3:”url”;s:35:”/facebook/customer_account/connect/”;s:11:”script_name”;s:10:”/index.php”;s:4:”skin”;s:7:”default”;}

    Please can you let me know if I missed something here?


  150. Hello,
    i just installed your extension and it works fine.
    But im courious about how to implement it on the onepage checkout. I add there a facebook-button close to the “login” and “lost password” buttons,and i expect it to act differently after i complete the inputs and click on it. but instead it has the same function like the login button.
    Are there other things i need to know?

  151. Tnx Ivan, I solved my problem. I flushed all magento cache and than working fine.

    This is solution if you want to optimize that fb button working fine on i-devices (iPhone,iPad…) too, you have to change javascript in init.phtml:

    <script type="text/javascript">
    window.fbAsyncInit = function() {
    		appId  : <?php echo json_encode($this->getApiKey()) ?>,
    		status : true, // check login status
    		cookie : true, // enable cookies to allow the server to access the session
    		xfbml  : true,  // parse XFBML
    		channelUrl : '<?php echo $this->getChannelUrl() ?>'  // custom channel
    	Event.fire(window, "facebook:fbAsyncInit");
    (function() {
    	var e = document.createElement('script');
    	e.src = document.location.protocol + '//connect.facebook.net/<?php echo $this->getLocale() ?>/all.js';
    	e.async = true;
    document.observe('dom:loaded', function(){
    	$("fbbtn").observe("click", function(e){
    	var target = e.findElement('a[rel^=facebook-connect]') || e.findElement('button[rel^=facebook-connect]');
    	if (target && target.readAttribute('rel')=='facebook-connect') {
    				if(response.status=='connected') setLocation('<?php echo $this->getConnectUrl() ?>')
    			}, {perms:<?php echo $this->getRequiredPermissions() ?>});

    Hope it helps…

  152. does not work
    I get this blank page:

  153. @Lance, Andy, Mattman: It’s easy to add FB connect to first login/registration step of one page checkout, just add something like

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

    somewhere in template and everything should work.

    It’s a problem to add it on other steps, cause page needs to be refreshed for login to work, and that will get you back to step one.

    @Nikola Ristivojevic: check if template and layout files are updated, people sometimes leave old ones in their custom theme and then Magento is using them. Check api key/secret and reload cache. If you have some other FB javascript on site it’s possible it interferes with module javascript. Those are most frequent problems, especially the last one 🙂

    Hope it helps ..

  154. Hello Ivan,

    +1 Lance and Andy !

    It will be really great if you add the button on the ‘one page checkout’ like the normal login page.
    Is it possible as a Christmas gift ? :)))

  155. Hi Ivan,

    I have just updated a version of your extension but I got an error ‘Facebook connection failed. Service temporarily unavailable.’. Please, may you write any suggestion?


  156. Hi Ivan

    This extension is great! Works just like it should. Is there any easy way to add as an option on the “Checkout Method” step in the one page checkout?



  157. Hello, just updated to your new version of the plugin and I keep getting the following message “Facebook connection failed.”

    Any suggestions on what this might be?


  158. Hi !
    Inchoo_Facebook-0.9.9 already implements oauth 2.0 as checked on github commits, i’m now just trying to update our currently extension on our platforms and getting it to work 😀

  159. Hi !
    We are currently using your facebook connect plugin on our magento platforms, but we’re a now in troubles with the most recent change on facebook that take over the compatibility between oauth and oauth2.
    Do you have any update to this plugin now connecting with oauth2 and not using facebook sessions anymore ?
    I’m also trying to do this by myself and if you don`t have any update, i’ll appreciate contribute my changes here!


  160. Thanks for a great extension, it’s come in very handy. Is there a way of adding a Facebook Connect link on the Checkout Method section of a One Page Checkout?


  161. after using your updated extension i got blank screen after click on customer-> configuration in admin panel.

  162. Tried today and works with one exception: If I try to connect to fb on the main page, error message apears (there was an error with the App, please try again later)
    If I connect from a product site or from the magento login page it works.
    Very strange – can you help?

  163. I was got “Invalid attribute name: facebook_uid.” while login magento with facebook account. Would you like to tell me how to solve this problem? Thank you!

  164. Hi there, I’m looking to use this, but I want it to redirect to another page if the user is not already registered (rather than registering them) and just log them in if they are already registered.. Is this easily acheived using this module?



  165. @Ivan,

    after upgrade to 0.9.9 somehow these two rows disapeared from database config. Added this:

    INSERT INTO `core_config_data` (`config_id`, `scope`, `scope_id`, `path`, `value`) VALUES
    (1134, 'default', 0, 'customer/facebook/enabled', '1'),
    (1135, 'default', 0, 'customer/facebook/locale', 'lt_LT')

    This maybe helps to do not set language.

    By the way, even after inserting these lines, module is not working. Clicking on link does not launch facebook connect window. Maybe still something wrong in init.phtml?

  166. Great thanks for the modules. It provides exact functionality that we needed 🙂
    I can confirm that it works fine with Magento
    Anything I can advice is to use paces instead of tab. Every editor has an option to replace automatically tab with desired amount of spaces.

    Best regards,

  167. New version released, article updated with newest instructions !! Please read “Important” section.

    @Priya, all: 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 in Magento. Facebook changed Api keys !!

    @developers: If anyone knows why fb login popup isn’t localized to set language anymore, please let me know. Documentation states same principle as before http://developers.facebook.com/docs/reference/javascript/ (Localization chapter), but it doesn’t work for me after latest Facebook changes. Does it work for you? Is this not implemented yet on FB side? fb: tags are localized but not login/privileges popup?!

    – Ivan

  168. Hi, its working. just download the new files and overwrite the old ones.

    i had to use my old init.phtml and change params to scope for it to work.


  169. @Magnus Alexander: Thanks for Norwegian translation. I see there are two Norwegian languages in Magento Norwegian Bokmal (nb_NO) and Norwegian Nynorsk (nn_NO).

    From what I just read on wikipedia Bokmal is commonly used one, but I wanted to check with you which one is it, just to be sure.


  170. Koncz Szabolcs
    i use your code , and got login popup but after login it show blank page and in request call back it show 500 Internal error.

  171. Hi Ivan,
    Facebook has recently updated from javascript sdk to auth2.0. Now the problem is instead of using response.session we need response.authresponse need to be used for plugin to work. Now fconnect is not working in all the websites where i have installed this plugin. Please instruct us or guide to get auth thing integrated in our plugin.

  172. @Ivan Weiler: Sharing is caring.. 😀

    What kind of error message you receive?
    I’m sure that a new, good release will be available soon,
    what I provided it is just a quick, temporary fix,

  173. As most of you know, Facebook introduced some changes, and extension indeed isn’t working at the moment 🙁

    New version can be expected in next few days.

    @Koncz Szabolcs: You have my biggest thanks for all the help and code provided here !!

  174. I applied the from koncz Szabolcs. But I get an error, what am I doing wrong? Here’s the error:

    class Inchoo_Facebook_Model_Session extends Varien_Object { private $_client; private $_valid_signature; public function __construct() { if ($this->getCookie()) { $data = array(); $data = $this->getCookie(); $this->setData($data); } } public function isConnected() { if (!$this->validate()) { return false; } return true; } public function validate() { return $this->$_valid_signature; } public function getCookie() { return $this->get_new_facebook_cookie(Mage::getSingleton('facebook/config')->getApiKey(), Mage::getSingleton('facebook/config')->getSecret()); } public function getClient() { if (is_null($this->_client)) { $this->_client = Mage::getModel('facebook/client', array( Mage::getSingleton('facebook/config')->getApiKey(), Mage::getSingleton('facebook/config')->getSecret(), $this )); } return $this->_client; } function parse_signed_request($signed_request, $secret) { list($encoded_sig, $payload) = explode('.', $signed_request, 2); // decode the data $sig = $this->base64_url_decode($encoded_sig); $data = json_decode($this->base64_url_decode($payload), true); $data['sig'] = $sig; if (strtoupper($data['algorithm']) !== 'HMAC-SHA256') { //error_log('Unknown algorithm. Expected HMAC-SHA256'); return null; } // check sig $expected_sig = hash_hmac('sha256', $payload, $secret, $raw = true); if ($sig !== $expected_sig) { $this->_valid_signature = false; //error_log('Bad Signed JSON signature!'); return null; } $this->_valid_signature = true; return $data; } function base64_url_decode($input) { return base64_decode(strtr($input, '-_', '+/')); } function get_new_facebook_cookie($app_id, $app_secret) { $signed_request = $this->parse_signed_request(Mage::app()->getRequest()->getCookie('fbsr_' . $app_id), $app_secret); // $signed_request should now have most of the old elements $signed_request['uid'] = $signed_request['user_id']; // for compatibility if (!is_null($signed_request)) { // the cookie is valid/signed correctly // lets change "code" into an "access_token" $access_token_response = file_get_contents("https://graph.facebook.com/oauth/access_token?client_id=$app_id&redirect_uri=&client_secret=$app_secret&code="; . $signed_request['code']); parse_str($access_token_response); $signed_request['access_token'] = $access_token; $signed_request['expires'] = time() + $expires; } return $signed_request; } }
  175. The code is a bit messed up, since the php-tags had been removed by the blog app.

    Here is the complete Session.php code: http://pastebin.com/2GnCq1KZ

    Copy this into your Session.php
    In init.phtml you only need to replace “params” with “scope”.

    @Ivan: the Session.php file is in the Model directory.

  176. @Koncz Szabolcs You are briliant….

    Thanks ..As i was working to solve issue in session.php..But not succeeded.

    Thanks for the help..

    Session.php can be found in


  177. And the Session.php also:

    class Inchoo_Facebook_Model_Session extends Varien_Object {
        private $_client;
        private $_valid_signature;
        public function __construct() {
            if ($this->getCookie()) {
                $data = array();
                $data = $this->getCookie();
        public function isConnected() {
            if (!$this->validate()) {
                return false;
            return true;
        public function validate() {
            return $this->$_valid_signature;
        public function getCookie() {
            return $this->get_new_facebook_cookie(Mage::getSingleton('facebook/config')->getApiKey(), Mage::getSingleton('facebook/config')->getSecret());
        public function getClient() {
            if (is_null($this->_client)) {
                $this->_client = Mage::getModel('facebook/client', array(
            return $this->_client;
        function parse_signed_request($signed_request, $secret) {
            list($encoded_sig, $payload) = explode('.', $signed_request, 2);
            // decode the data
            $sig = $this->base64_url_decode($encoded_sig);
            $data = json_decode($this->base64_url_decode($payload), true);
            $data['sig'] = $sig;
            if (strtoupper($data['algorithm']) !== 'HMAC-SHA256') {
                //error_log('Unknown algorithm. Expected HMAC-SHA256');
                return null;
            // check sig
            $expected_sig = hash_hmac('sha256', $payload, $secret, $raw = true);
            if ($sig !== $expected_sig) {
                $this->_valid_signature = false;
                //error_log('Bad Signed JSON signature!');
                return null;
            $this->_valid_signature = true;
            return $data;
        function base64_url_decode($input) {
            return base64_decode(strtr($input, '-_', '+/'));
        function get_new_facebook_cookie($app_id, $app_secret) {
            $signed_request = $this->parse_signed_request(Mage::app()->getRequest()->getCookie('fbsr_' . $app_id), $app_secret);
            // $signed_request should now have most of the old elements
            $signed_request['uid'] = $signed_request['user_id']; // for compatibility
            if (!is_null($signed_request)) {
                // the cookie is valid/signed correctly
                // lets change "code" into an "access_token"
                $access_token_response = file_get_contents("https://graph.facebook.com/oauth/access_token?client_id=$app_id&redirect_uri=&client_secret=$app_secret&code=" . $signed_request['code']);
                $signed_request['access_token'] = $access_token;
                $signed_request['expires'] = time() + $expires;
            return $signed_request;
  178. Here is the correct init.phtml file,

    <!-- BEGIN Inchoo Facebook Connect -->
    <div id="fb-root"></div>
    <script type="text/javascript">
        window.fbAsyncInit = function() {
                appId  : <?php echo json_encode($this->getApiKey()) ?>,
                status : true, // check login status
                cookie : true, // enable cookies to allow the server to access the session
                xfbml  : true,  // parse XFBML
                oauth  : true,
                channelUrl : '<?php echo $this->getChannelUrl() ?>'  // custom channel
            Event.fire(window, "facebook:fbAsyncInit");
        (function() {
            var e = document.createElement('script');
            e.src = document.location.protocol + '//connect.facebook.net/<?php echo $this->getLocale() ?>/all.js';
            e.async = true;
        document.observe('click', function(e){
            var target = e.findElement('a[rel^=facebook-connect]') || e.findElement('button[rel^=facebook-connect]');
            if (target && target.readAttribute('rel')=='facebook-connect') {
                        if (response.authResponse){
                            //console.log('Welcome! Fetching your information... ');
                            if(response.status=='connected') { setLocation('<?php echo $this->getConnectUrl() ?>');}
                            //console.log('User cancelled login or did not fully authorize.');
                    {scope:<?php echo $this->getRequiredPermissions() ?>});
    <!-- END Inchoo Facebook Connect -->
  179. Strange, but thanks for the notifications, you should use this everywhere in the init.phtml
    also for getRequiredPermissions. It seems that when I pasteed the code it removed automaticaly, Is there a way that allows you to upload files directly, to avoid problems like this?

  180. Can you tell me the location of this session.php you modified?

    I found init.phtml in /public_html/kupon/app/design/frontend/default/default/template/facebook/init.phtml

  181. thank you very much for your help and tips , it works great ! I was quite surprised today , seeing that facebook connect didn’t work anymore
    PS : for information, there are some little mistakes in the JS code your provided, missing $this-> before the calls of getApiKey() and getChannelUrl()

  182. This is my modified Session.php file, here there are more modifications, the facebook stores its cookie now in fbsr_+”App_id”, and there are also some extra functions for the cookie parsing and validation.

    I hope it helps,

    class Inchoo_Facebook_Model_Session extends Varien_Object {

    private $_client;
    private $_valid_signature;

    public function __construct() {
    if ($this->getCookie()) {
    $data = array();
    $data = $this->getCookie();

    public function isConnected() {
    if (!$this->validate()) {
    return false;
    return true;

    public function validate() {
    return $this->$_valid_signature;

    public function getCookie() {
    return $this->get_new_facebook_cookie(Mage::getSingleton(‘facebook/config’)->getApiKey(), Mage::getSingleton(‘facebook/config’)->getSecret());

    public function getClient() {
    if (is_null($this->_client)) {
    $this->_client = Mage::getModel(‘facebook/client’, array(
    return $this->_client;

    function parse_signed_request($signed_request, $secret) {
    list($encoded_sig, $payload) = explode(‘.’, $signed_request, 2);

    // decode the data
    $sig = $this->base64_url_decode($encoded_sig);
    $data = json_decode($this->base64_url_decode($payload), true);
    $data[‘sig’] = $sig;

    if (strtoupper($data[‘algorithm’]) !== ‘HMAC-SHA256’) {
    //error_log(‘Unknown algorithm. Expected HMAC-SHA256’);
    return null;

    // check sig
    $expected_sig = hash_hmac(‘sha256’, $payload, $secret, $raw = true);
    if ($sig !== $expected_sig) {
    $this->_valid_signature = false;
    //error_log(‘Bad Signed JSON signature!’);
    return null;

    $this->_valid_signature = true;
    return $data;

    function base64_url_decode($input) {
    return base64_decode(strtr($input, ‘-_’, ‘+/’));

    function get_new_facebook_cookie($app_id, $app_secret) {
    $signed_request = $this->parse_signed_request(Mage::app()->getRequest()->getCookie(‘fbsr_’ . $app_id), $app_secret);
    // $signed_request should now have most of the old elements
    $signed_request[‘uid’] = $signed_request[‘user_id’]; // for compatibility
    if (!is_null($signed_request)) {
    // the cookie is valid/signed correctly
    // lets change “code” into an “access_token”
    $access_token_response = file_get_contents(“https://graph.facebook.com/oauth/access_token?client_id=$app_id&redirect_uri=&client_secret=$app_secret&code=” . $signed_request[‘code’]);
    $signed_request[‘access_token’] = $access_token;
    $signed_request[‘expires’] = time() + $expires;
    return $signed_request;


  183. This is the contetn of the modified init.phtml file:

    window.fbAsyncInit = function() {
    appId : getApiKey()) ?>,
    status : true, // check login status
    cookie : true, // enable cookies to allow the server to access the session
    xfbml : true, // parse XFBML
    oauth : true,
    channelUrl : ‘getChannelUrl() ?>’ // custom channel
    Event.fire(window, “facebook:fbAsyncInit”);

    (function() {
    var e = document.createElement(‘script’);
    e.src = document.location.protocol + ‘//connect.facebook.net/getLocale() ?>/all.js’;
    e.async = true;

    document.observe(‘click’, function(e){
    var target = e.findElement(‘a[rel^=facebook-connect]’) || e.findElement(‘button[rel^=facebook-connect]’);
    if (target && target.readAttribute(‘rel’)==’facebook-connect’) {
    if (response.authResponse){
    //console.log(‘Welcome! Fetching your information… ‘);
    if(response.status==’connected’) { setLocation(‘getConnectUrl() ?>’);}
    //console.log(‘User cancelled login or did not fully authorize.’);

    {scope:getRequiredPermissions() ?>});

  184. I fixed it, hurray, and it is working :d

    In a couple of minutes I upload my modifications, and changes. They still might be optimized, but I upload them as they are…

  185. Hi All,

    I got reason for it.

    Its due to the OAuth 2.0 migration by fb..

    Anyways I succeeded in getting the fb login popup.

    You have to make following modification in init.php.

    if (response.authResponse) {
    console.log(‘Welcome! Fetching your information…. ‘);
    if(response.status==’connected’) setLocation(‘getConnectUrl() ?>’);
    console.log(‘User cancelled login or did not fully authorize.’);
    }, {scope:getRequiredPermissions() ?>});

    But after inserting login details it shows that “facebook connection failed”..


  186. Hi,

    we have the same problem. The extension isnt working anymore and I dont get any error message. Do you have any idea what could be the reason?


  187. Hi Ivan,

    I installed this extension and it was working fine until today. It is not working neither giving any error

    Can you please reply what is the problem…

  188. Hi,
    the module stopped working today due to the OAuth 2.0 migration.
    Can you please provide a fix? I bet hundreds of people who used your module are having the same issue.

  189. i’m using magento community edition
    I have added the button with rel attribute “facebook-connect”in header.phtml

    The button is not functional. Could anyone please help me on this. Thanks in advance!

  190. i’m using magento community edition
    I have added the below in header.phtml
    Connect with Facebook
    The button is not functional. Could anyone please help me on this. Thanks in advance!

  191. in magento 1.4 it didn’t work by clicking the connecting button. What is the problem?
    Thank you for your help!

  192. How I can customize the button. Actually there is no button at all. Only link to Connect with Facebook. I wan’t it to look like Facebook button.
    Earlier someone but some codes to customize button. But those code doesn’t work for me.
    And I cannot also but the button on my cms page.

  193. for all those who wants to get rid of the Facebook connect link when user is logged in, just edit the design/frontend/base/default/layout/facebook.xml code like this:

    <?xml version="1.0" encoding="UTF-8"?>
    		<reference name="after_body_start">
    			<block type="facebook/template" template="facebook/init.phtml" name="facebook_init" />
    		<!-- example of old deprecated synchronous implementation
    		<reference name="before_body_end">
    			<block type="facebook/template" template="facebook/init_synchronous.phtml" name="facebook_init" />
    		<reference name="top.links">
    			<action method="addLink" translate="label title" module="facebook" ifconfig="customer/facebook/enabled"><label>Connect with Facebook</label><url helper="facebook/getConnectUrl"/><title>Facebook Connect</title><prepare/><urlParams/><position>110</position><liParams/><aParams><rel>facebook-connect</rel></aParams></action>
    		<reference name="content">
    			<block type="facebook/template" template="facebook/login.phtml" name="facebook_login" />
  194. What’s the status of this extension, is it stable?
    As there’s no demo I don’t know how it looks like etc.

    Thanks 🙂

  195. I found a temporary fix to my issue.
    since the page was stuck in IE I changed Channel.php to:

    $html = ‘setTimeout(“location.href = \”.Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB, true).’customer/account/\'”, 2000);’;

    $html .= ‘isSecure() ? ‘https://’ : ‘http://’).’connect.facebook.net/’.($this->getData(‘locale’) ? $this->getData(‘locale’) : $this->getLocale()).’/all.js”>’;

    return $html;

  196. Hi, it’s a great extension but it doesn’t work with IE

    SCRIPT5007: Unable to get value of the property ‘FB’: object is null or undefined
    all.js, line 12 character 3251

    It goes to an URL like /facebook/channel/index/locale/en_US/?fb_xd_fragment#?=&cb=…
    The page is blank.

    Thank you for your help.

  197. Locale – Languages not working properly.

    I have tried activating Japanese (there is also Javanese?) and Korean on the site but none of them seem to work. It still just displays the English text.

    How do I make them work?

  198. Hello all,

    Please ignore old demo url, it’s been deprecated. We’re in the process of setting up new demo store, so I removed demo link from article for now.


  199. Oh! Got it friends… I was using Facebook like button on the same page so there was conflict between The facebook connect javascript and facebook like javascript…i removed the Facebook like button from page and now it is working fine for me.

  200. I had used demo url ” http://playground.surgeworks4u.com/customer/account/login/ ” which was given in this site for Facebook connect. but I displayed following error msg.

    “An error may have occurred as part of the login process. You can close this window and try returning to the application, though it may ask you to login again. This is likely due to a bug in the application. “

  201. I used this “Facebook connect Magento extension”. Last sixth months it was worked fine. but now when try login using facebook connect it display following text

    “An error may have occurred as part of the login process.
    You can close this window and try returning to the application, though it may ask you to login again.
    This is likely due to a bug in the application.”

    anyone please help me to solve this issue. thanks………

  202. I’m getting a “Facebook connection failed.” error when using Google Chrome. It works with IE, Safari and Firefox but not with Chrome, does anybody knows why is that???

  203. Installed it on magento 1.6 but the Facebook button is disabled, shows up but it is disabled. I clicked on it and does nothing. I uploaded and reuploaded the 0.9.7 version. What could be the problem?

  204. Mine should be installed correctly… and I’m getting “Connection failed.” Can you fix this for me or help please?

  205. @Milan: Thanks for HU, it will be included in next release.

    @Sahil: Thanks for notifying community! Yes, it works great on new, I also tested it few days ago.

  206. Hi,

    Can you help me to extend the same extension to update a status with login..?
    I mean if user logs in with facebook connect their staus gets updated with some message that admin sets..
    Is this possible if yes how..?

  207. I see a lot of comments coming, people are frustrated, but one thing I learned with Magento that you need to check everything very clear, be patient, flush cache after install, reindex data, look for already installed plugins, maybe you have one extension already using facebook api which causes conflict. I did install this extension without any problems, it is integrated in my free theme and no problems. Checkout magento connect for boomboom theme and see it working.

  208. Help! facebook change the way applications are created I get the error 191 and the connect button does not work in my magento does nothing

  209. Thank you Ivan, works perfect with 1.6. Just one detail, after the user is logged in and connected using their facebook account… how can I hide the “Connect with Facebook” link?
    Only illustration of what I mean:

    if($fc_connect_status = already_connected);
  210. Sorry but your fix isn’t working, the same thing is happening.
    In toolbar I can see that it is trying to connect to facebook, but after some time he just gives up or thinks that facebook was loaded

  211. Hi friends,

    the solution for the Invalid attribute name: facebook_uid is simple.

    The intall script was not running.

    To fix this try this:

    Go to

    open the file “login.phtml”

    go to line 1 and insert :

    addAttribute(‘customer’, ‘facebook_uid’, array(
    ‘type’ => ‘varchar’,
    ‘label’ => ‘Facebook Uid’,
    ‘visible’ => false,
    ‘required’ => false


    save your work.

    go to the magento frontend to logon page. try to login via facebook.

    if the login is successful , delete the inserted code from “login.phtml” and save your work.

    bad english… i know 😉

  212. Hi I have same issue as users Gaurav and vipul, button not working at all without any errors.
    Followed instructions and placed files to custome template and layout folders.

    Where I need to search for problem?

  213. Hi,

    Here’s another translation: Hungarian


    The Facebook Applications part is not translated on purpose as we use it in English, noone would be able to tell what the heck is that if I had translated.

    Best wishes

  214. i have followed all the instructions carefully..the Connect with Facebook block is be shown on Login page but when i click on the button Nothing Occurs..page doesnt get submitted..Even doesnt show any error..please help

  215. Ivan, after the user is logged in using facebook… how can I retrieve his data? the facebook data like id… because I want to show the user their profile pic when logged using facebook, or the access_token…

  216. For anyone having the ‘Connection Failed issue’, make sure the layout and template files are in your custom template directory, this might solve the problem 🙂

  217. @Dirk I work on grillstyle.de and new project uhrzeitstore.de with this Facebook Connect Extension of Inchoo on Magento OpenSource Version without problems. Which other Extensions have you installed? You can make a short list. I had a small issue with the German Market Ready Extension and a missing file in core. I searched hours to find the bug and my error message looked the same.

  218. Fatal error: Call to a member function getBackend() on a non-object in xxx/facebook/app/code/core/Mage/Eav/Model/Entity/Abstract.php on line 816

    Any idea? I downloaded and installed the latest version and installed it on 1.6

  219. @Aivaras: Fell free to integrate my extension as part of your theme, just write credits if possible. I wrote you more detailed answer on github, check messages.

    @all: The theme looks fantastic, make sure to check it out !!

  220. Hi Ian, would it be possible to include this module into theme to publish into themeforest? I have made theme in boomboom.shildek.com as you can see I am using facebook connect plug-in on sign-in page but if I need to be able to sell theme I do not know about rights, in GitHub there is only Copyright with your name and nothing more..

  221. Hi Ivan,

    thank you fror your work! I have installed this package, the first time it work, but after second login I receive an error, like connection with facebook failed. I check api and secret key and they was correct. I try to reinstal but nothing. After this i add this module: http://www.magentocommerce.com/magento-connect/Magazento/extension/7093/magazento_facebook_widgets

    and now i don’t see “login with facebook”. ho can resolve my problem?
    Thank you very much!

  222. Ok, I figured it out. By process of elimination. Turns out the Magazento All-In-One Facebook Widgets Integration was the one that was causing some sort of a conflict i guess. the FB connect worked as soon as I un-installed this Magazento extension, which i really liked cause it gave me the ability to have a fb like button on product pages. Any suggestions?

  223. I installed it and it worked great. All of the sudden, today, i noticed that the FB login is lo longer on the login page. Looking at the source, I don’t even see the Init.phtml code nor do I see the Login.phtml. I can’t figure out what happened. Everything looks good on the backend, the extension is enabled, and the fb app codes are correct, the phtml/code/everything is in the right place in the theme. I’m trying to figure out a way to troubleshoot it but I can’t figure it out. Any suggestions?

  224. Continued from my previous post:

    The funny thing is that it logs me in but then leads me to the error page.

    Meaning, if I am logged out from Facebook in another tab, and i click “connect with facebook”, If I go to facebook tab & refresh, I am already logged in. But, somehow, on my site it gives me the error Invalid attribute name: facebook_uid.

    I even went to Index Management & reindexed everything along with the cache.

    Still Doesn’t work….I would love to have this working on my site…but so far….NO LUCK!!!

    This is what I did (from Start): Uploaded the app folder to my root, created a facebook app (which seems to be connecting right), enabled the extension, added the API key & application secret. Refreshed the indexes & cache.


  225. I keep getting the following error:
    Invalid attribute name: facebook_uid.

    And, It doesn’t seem like anyone with similar issue was able to get it resolved, any help would be highly appreciated.

    I refreshed the cache, redirected my domain so it uses www. These are my settings in facebook app.

    Site URL: http://www.mydomain.com/
    App Domain: mydomain.com

    What am I doing wrong??

    If anyone had the same issue, please post a solution….

  226. the result is Facebook connection failed.

    I’ve followed the instruction carefully but its really not working….

    is the update of facebook causing me not able to login?

    here’s what Im pointing
    look at that image and see whats the different… now the APP ID and API key is one…. which is I’ve use and put into the magento backend… while in your screen there’s a separate API key

  227. figured it out… got my hand on the access code from response.session.access_code…

    				if(response.status=='connected') setLocation('<?php echo $this->getConnectUrl() ?>');
    				/*Code to get Access token*/
    				if (response.session) {
    					var access_token = response.session.access_token;
    				} else {
    					alert('User is logged out');
    			}, {perms:<?php echo $this->getRequiredPermissions() ?>});

    Thank you for sharing this wonderful code!

  228. Hi Ivan.. i am trying to get multiple permissions for my website… modified getRequiredPermissions() function accordingly but i am unable to find out a way to get access token to access user data…. can u please help… thanks in advance:)

  229. What about the problem in magento Is there any solution for that? I am having the same problem as PAUL. The button appears and everything seems fine, but when i press the button, nothing happens.

  230. Hello all,

    Just to let you know (since few people asked me), extension also works great on new 1.6 Magento. I just updated info about that. Also, new version has been released the other day with few new languages added thanks to contributors.

    Now, about errors:

    “Invalid attribute name: facebook_uid” error indicates that installation didn’t run for unknown reasons, try reloading Magento cache. I have no other idea why this would happen in your setup.

    “Facebook Connection failed.” error is mostly caused by invalid api key/secret/domain setup in Magento, so double check everything on both Facebook and Magento side. I also saw examples where separate facebook js code is added to the site, for like buttons, fan boxes or similar, with different api key which is causing conflicts. One fb app should be used for all and all duplicate initializations should be avoided, which means if you want to add LIKE button just add fb:like tag with proper attributes, everything else will work out of the box, no additional code required.

    Hope this helps somebody, regards

  231. Was anyone able to make this work on magento 1.4.2 ? It seems that everythings in place but the button doesnt actually do anything. I tried the button rel=”facebook-connect” on cms page, static blocks and even in theme, but it doesnt seem to work..

    How to get it working on magento version 1.4.2? Any help guyz?

  232. Im sorry i made a mistake my skype is haso.keric i will help debug your issue since i have done so on 3 sites. 🙂

  233. Who ever has ‘facebook connect failed’ errors add me on skype keric.haso i will help you 🙂

  234. Hi Ivan.. I show the login/register page (/customer/account/login/) inside a shadowbox window. When I login with Facebook it would load the page within the shadowbox window. If the login is successful, how can I get that button to reload the “parent” page?

  235. Dear all,

    We have multiple store views running on different url’s. Like .co.uk and .nl and .be. Is it possible to add a Key for each store? Now it is only possible to ad a facebook key as a general setting. Please let me know.

  236. I have the same issue as Yav and Ivan Lee, there is an issue with CE
    Please can someone help fix the error below, many thanks.
    Invalid attribute name: facebook_uid


  237. I get the same error as Ivan Lee.
    It’s not working on CE, I get this error: Invalid attribute name: facebook_uid error.
    Can anyone help me how to fix it ?

  238. Hi,

    I have installed Magento 1.5.x today, and tried to connect user via Facebook Connect.

    Everything went fine, popup showed, I have entered my login and password, but when redirected back to Magento I receive blank screen.

    In error logs I can see this row:

    PHP Fatal error: Class ‘Zend_Log’ not found in /var/www/vhosts/***/httpdocs/app/code/community/Inchoo/Facebook/Model/Client.php on line 156, referer: http://www.***/

    Can someone please help?



  239. Hi Ivan,

    Thanks for the plugins. I want to get the facebook profile photo after connect with facebook. How can it possible in your plugin?

  240. Very nice and very kind of you. Other companies are selling it but you have a tutorial for tell everyone how to do it 🙂 Community need more people like you to spread Magento knowledge.

  241. Thank you for this. Works great.
    For whom it may concern:
    I edited local.xml and added the link

    		<reference name="top.links">
    			<action method="addLink" translate="label title" module="facebook" ifconfig="customer/facebook/enabled"><label>Connect with Facebook</label><url helper="facebook/getConnectUrl"/><title>Facebook Connect</title><prepare/><urlParams/><position>110</position><liParams/><aParams><rel>facebook-connect</rel></aParams></action>
  242. I am still struggling to get the Facebook Connect link to appear. I have 1.5.1 and Modern theme.

    I am very average at magento and do not understand all the ins and outs so would appreciate an idiots guide if possible!

    I have installed it correct as it appears in config area.

    Also can someone confirm if this does create a full account for someone using their Facebook details or just saves them filling in the new account form?

  243. Hi,
    I’m wondering does the facebook authentication ever expire? Is there any security procedure for checkout and billing info lookups?


  244. I have installed your plugin on Magento and got the following error:

    Fatal error: Class ‘Inchoo_Facebook_Helper_Data’ not found in C:\xampp\htdocs\web\eminy\app\Mage.php on line 520

  245. disregard my comment. i added a local-production.xml and it was overwriting my local.xml and trying to use memcached. it was coincidence that i hadn’t cleared my /var/cache & var/session since I made that change.

    going to give the plugin another shot.

  246. Hello! I installed your extension on 1.5.1 on my development server and now I can’t get anything to load. I’m getting this error, which seems like a permissions thing to me, but I’ve chmod 777 my entire magento folder and still nothing.


    have you ever seen this? I’ve tried enabling/disabling memcache module (I’m using session files in my almost default local.xml, so not sure why it would be trying to use memcache for sessions.)

    I’m using source control, so I completely reverted to a clean copy (pre-install of your facebook module) and I’m still getting this error. So strange.



  247. I install 0.9.6 with magento . I got “facebook connection failed” so I have to change from “” to “” at facebook.xml then It’s work for first connect
    It seem that customer doesn’t subscribe newsletter when connect(first). How can i set it auto subscribe?

    Thank you ^^

  248. Sorry for misleading you Winnie 😛

    I had the same problem at a point but it was because I set the wrong domain in Facebook (i had testing on a staging environment).

    So might just be it. If the connection failed it’s most likely to be caused by a problem of connection between your domain and Facebook’s API

  249. Oh I just noticed your error is different from mines, haha. I just simply get the message ““Facebook connection failed” after applying everything correctly. Hopefully somebody can help, I would love this feature.

  250. I followed every step and my result was “Facebook connection failed”

    Instead of installing the folders in the default theme, I followed the file directory of my theme. Am I doing something wrong?

    Thank you

  251. Hi, nice extension, works fine on 1.4.2.
    How ever, we embed a code for facebook likes in one of our pages and it seems to break it :

    Plugin cannot be rendered with the specified parameters.

    Any reason for that ?

  252. @Marco F Garcia: Thanks for nice comment. I would recommend combining javascript and have only one init statement for all.

    @Thomas: Try reloading config cache, that’s usually the problem.

  253. I followed the upload instructions precisely but there is no “Facebook Connect Option” under customer config? What to do?

  254. Dear Ivan,

    I have set up the Facebook Connect Module and everything works fine until I install Nivo Slider with jQuery. The Facebook Connect seems to conflict with it and not working. I checked the Nivo Slider code and everything seems fine with their code (adhere to all guideline for conflicts resolve)

    Could you help to give me some idea what possible conflicts may happen?

    Thank you and really appreciate your wonderful work

  255. @Ivan Weiler
    Hey Ivan can u please tell me is this using this connection do we get extended permission . I tried to log the permission in Session.php >> getPermissions()
    method I got this .

     [_validPermissions:protected] => Array
                [0] => email
                [1] => read_stream
                [2] => publish_stream
                [3] => offline_access
                [4] => status_update
                [5] => photo_upload
                [6] => create_event
                [7] => rsvp_event
                [8] => sms
                [9] => video_upload
                [10] => create_note
                [11] => share_item

    I just want to confirm can I use these functionalities also. Also I have observed the this extension uses the Rest API. What about Graph API & PHP SDK 3.0. Many Thanks

  256. Great plugin! I have managed to install the plugin successfully, however when I attempt to add a product to my cart using the user as logged in via Facebook we get the message: “Cannot add the item to shopping cart.”

  257. Further testing last night and this morning has confirmed that the Facebook Connect Extension for Magento also works within Facebook for those that happen to be creating an App that requires a separate login.

    I´m thrilled! I did however wonder after, you see I generally use

    <script type="text/javascript"> 
    window.fbAsyncInit = function() {
    function sizeChangeCallback() {

    just before the closing head tag and

    <div id="fb-root"></div> 
    <script src="http://connect.facebook.net/en_US/all.js"></script> 
        appId  : YOUR_APP_ID,
        status : true, // check login status
        cookie : true, // enable cookies to allow the server to access the session
        xfbml  : true  // parse XFBML

    before the below before the closing body tag.

    This helps me auto resize the iframe and eliminate the ugly scroll bar.

    SO — My question is, since this Extension, essentially creates it´s own FB.init statement…. at the beginning.

    <body class=" cms-index-index cms-home"> 
    <!-- BEGIN Inchoo Facebook Connect --> <div id="fb-root"></div> 
    <script type="text/javascript"> 
    window.fbAsyncInit = function() {
    		appId  : "YOUR_APP_ID",
    		status : true, // check login status
    		cookie : true, // enable cookies to allow the server to access the session
    		xfbml  : true,  // parse XFBML
    		channelUrl : 'http://MYSITE.COM/index.php/facebook/channel/index/locale/en_US/'  // custom channel
    	Event.fire(window, "facebook:fbAsyncInit");
    };  etc.... etc... etc... code....etc....

    Do they conflict or work together?

    Would the FB Connect Extension script function better if it was somehow positioned lower in the .html output closer to the closing body tag ?

    This way I assume, I could delete the second set I generally use and only use one instance, I think (:

  258. Thanks developers and collaborators on such a worthy and impressive feature. This extension deserves to be on the list of top magento extensions.

    Fantastic and working flawlessly out of the box.

  259. The problem of facebook connection failed is due to:

    $data = array();
    parse_str(trim($this->getCookie(),'”‘), $data);


    In Session.php of the module. It seems that the getCookie returns empty data which result in false.

    I echoed the getCookie method:

    Mage::app()->getRequest()->getCookie(‘fbs_’.Mage::getSingleton(‘facebook/config’)->getApiKey(), false);

    And ideed it returns false, it seems like the gookie with key: fbs_’.Mage::getSingleton(‘facebook/config’)->getApiKey()

    is not set correctly and cant be found.

    Anyone know a solution?

  260. after installing it on Magento 1.4.2 i can login with connect with facebook link but magento default login link stop working.

  261. Does anyone have a fix for the: Connection Failed problem?

    Im using magento 1.5 Connection Failed and buttons not working

  262. @Ivan
    Hey Ivan is it possible if I include all.js (from facebook)
    twice or more module may not work properly. I am having this kind of error. I think its having a conflict between all.js for facebook like button & the Facebook connect (this module)

  263. @Abdul Jamal: It’s working fine in Chrome and IE, try opening demo site !! If it’s maybe not working on old deprecated IE6 I believe that’s official FB lib problem. Anyway, adding xmlns:fb=”http://www.facebook.com/2008/fbml” to <html tag helps IE, something like

    <html xmlns=”http://www.w3.org/1999/xhtml” xmlns:fb=”http://www.facebook.com/2008/fbml” xml:lang=”en” lang=”en”>

    @Sergio Duarte: Just a note, there is a reason why Connect with Facebook is there after customer logges in, if he wish to “connect” his FB account with different store account for example after its already connected to one or similar. It happens rare but functionality is there.

    @Sir Mull: Thanks, I’ll add it to github and include in next release

  264. How could I customize what to show, I only get an FB image, I would like to output the name of the person to show something like “Welcome ##FB Name##” please help.

  265. Hi,
    Thank you for this very interesting extension, however I get a button that is non-clickable…

    Is this code really enough :

    Or did I miss something ?
    Thanks 🙂

  266. Managed to resolve my issue with headers already being sent. Problem was nothing to do with this excellent extension but rather to do whitespace in the file mentioned in the error log…

  267. @Chris Forscutt: playground wasn’t updated to latest version of extension, thanks for reminding me.

    Feel free to try it now !!

  268. I’m also getting an error on my staging site:

    Failed to load node from config.

    #0 /home/public_html/sub_domains/staging/app/code/core/Mage/Eav/Model/Entity/Attribute/Source/Config.php(55): Mage::exception(‘Mage_Eav’, ‘Failed to load …’)

    I’m using Magento 1.4.2, with some modules updated to 1.5.1

    Any ideas?

  269. Hello Ivan

    Firstly, thank you for your contribution to the community. From looking at your code I gathered that you are not using the official Facebook PHP SDK. Could you please give an example of how you use your extension to make calls to the FB API with the current Facebook session in a template file for instance?

  270. When logging in thru facebook I am getting this error message when magento attempts to show the user dashboard:

    URL: http://www.sinfulthrills.co.uk/facebook/customer_account/connect/
    IP Address: xx.xx.xx.xx
    Time: 2011-06-10 18:05:48 GMT
    Cannot send headers; headers already sent in /home/gp/public_html/app/code/local/Mage/Catalog/Model/Config.php, line 10

    #0 /home/gp/public_html/lib/Zend/Controller/Response/Abstract.php(148): Zend_Controller_Response_Abstract->canSendHeaders(true)
    #1 /home/gp/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(725): Zend_Controller_Response_Abstract->setRedirect(‘http://www.sinf…’)
    #2 /home/gp/public_html/app/code/community/Inchoo/Facebook/controllers/Customer/AccountController.php(76): Mage_Core_Controller_Varien_Action->_redirectReferer()
    #3 /home/gp/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(420): Inchoo_Facebook_Customer_AccountController->connectAction()
    #4 /home/gp/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(253): Mage_Core_Controller_Varien_Action->dispatch(‘connect’)
    #5 /home/gp/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(176): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
    #6 /home/gp/public_html/app/code/core/Mage/Core/Model/App.php(340): Mage_Core_Controller_Varien_Front->dispatch()
    #7 /home/gp/public_html/app/Mage.php(627): Mage_Core_Model_App->run(Array)
    #8 /home/gp/public_html/index.php(80): Mage::run(”, ‘store’)
    #9 {main}

    Has anyone experienced this before?

  271. i try your demo. after login i have:

    There has been an error processing your request

    Exception printing is disabled by default for security reasons.

  272. Hi Ivan thanks for your module.
    Just a quick question
    What are the possible cases that the module can report error
    “Facebook connection failed”

    Provided I have entered the API key, username and password correctly

  273. Hi there,

    Thanks for this great extension! I got it working on Magento – that is – it works on all pages except for the homepage..

    Any clue as to why this is happening?



  274. The fb connect plugin works great when the setting of ‘Share Customer Accounts’ was ‘per_website’.But when it was made ‘Global’,it throws an error “Can’t share customer accounts global. Because some customer accounts with same emails exist on multiple websites and cannot be merged.”What is the solution for this?

  275. @Benny Chan: I need to check about middle name, I’ll write it down and implement if possible in future versions. Regarding DOB, module is trying to get date of birth from facebook if possible, but some fb users block it or just never enters it on fb .. and if you configure Magento that DOB is required, module pre-populate registration form, since that’s the best it can do.

    Hope this helps!

  276. Hello all, v.0.9.6 released !!

    It’s a BUGFIX release thanks to Magento developer Toni Grigoriu, http://www.tonigrigoriu.com/ who found the problem and posted solution. Thx Toni !!

    Romanian and Lithuanian translations are also added.


  277. Hi Ivan, thanks for developing such a great extension.

    I have a question and I hope you can advice me.

    I notice that when click on Facebook Connect for the first time, it only captured my First Name and Last Name from my Facebook profile. How/Where can I edit in the code file so I can also capture Middle Name from my Facebook profile?

    Second question is that, I turn on customer D.O.B in the customer configuration, and when I click Facebook Connect, it redirect me to Create New Account screen with error message:-
    “Facebook profile can’t provide all required info, please register and then connect with Facebook for fast login.
    — The Date of Birth is required.”

    I really appreciate if you could help me with these problem. Thank you.

    Best Regards,

  278. Updated to 0.9.5, all posted languages added. Thank you all for help !! 😉

    I also updated post with explanations how to add custom connect buttons/links if your theme is somehow different. Hope it helps.

  279. does not seem to work on Magento ver. after uploading the files i just get a error page when clicking on Customer Configuration in the admin.

  280. oops!

    Fatal error: Class ‘Inchoo_Facebook_Helper_Data’ not found in /home/content/i/s/l/islogin/html/hosted/starvisions/app/Mage.php on line 520

  281. @Ivan Weiler: is there a way to make your extension redirect the user to the home page after logging in instead of redirecting him to the users “My Account” section, when he logs in using /customer/account/login system? i know that it redirects me to the same page in which the users logs in, but i would like to change it just in this case… can you help me with any advise? tks

  282. @Ivan Weiler: Yes, i enabled it to yes but no change at all and no click-able Facebook connect link on the new screen

  283. Im using Magento uploaded the file “app” to my server the refreshed my cache and im getting this message “Facebook connection failed.” when you click on Facebook connect.

    This is a great free extensions thank you for your help.

  284. @Matthias Zeis: Ok, thanks for the info ..

    @ivan balabanov: There is new Enabled: Yes/No option and it’s disabled by default, maybe that’s the problem. Under Configuration->Customer->Facebook Connect, set Enabled to Yes.

  285. Hello there,

    Here is the Bulgarian translation (BG) – http://pastie.org/1909153

    I am using Magento with previous version of Inchoo Facebook Connect. After replace with the new one via ftp it is not working. I will roll back the old version and will wait for Magento Connect to be ready.

    Is there something more I need to do after the ftp upload to make it work?

    Thank you.

  286. Thank you all for helping out. All posted languages will be included in next release.

    Quick question, does it make sense to include/activate admin translations for this kind of things or frontend only. What do you all think ?! How many of you are using translated admin interfaces ?

    @Matthias Zeis: Yes, I thought pastie will be good cause of that “paste again” feature ..

  287. The workflow using Pastie is a nice idea. 🙂

    I did another German translation. It isn’t a replacement for Simons version but an alternative translation. In German, there is a casual form of “you” (Du) and a formal version (Sie). Simon did the casual form, I did the formal version.

  288. Now that I have this working and have been playing with it for a while, I’m wondering what the value in having this feature is?

    The user is still required to enter a generated password in order to actually login to the site, their Facebook account doesn’t really log them in, all I can see that it does is save the user from filling out the account creation form…..correct me if I’m wrong?

    Some could argue that it provides the store owner with a another avenue of gathering information on their visitors, but in the end there is still no added value to the user. I think (based on my personal opinion) a user would be more apt to sign up for a newsletter or follow the store on Twitter before allowing me access to their Facebook account, a lot of people are very cautious about this because of other similar systems that abuse the privilege and post crap all over their walls…..

    Because of the products I sell there is no reason for a user to create an account ever, there would be no added value in them having an account, other than providing me with information I get at checkout anyways. This will obviously be different for other store owners, people who track shipments or sell software etc.. the user benefits from creating account.

    Don’t get me wrong I think this is a great extension, I just don’t see the added value for the end user to provide me with access to their Facebook account? I’m open to any suggestions on how I might benefit from using this in my situation, or maybe my facts are all wrong?

    Either way, just thought I’d give my 2 cents, keep up the great work Inchoo!!!

  289. @Dino, @Roberto: Ok, I’m impressed 😯 !!! I didn’t expect this kind of response so soon. Yeaaaaa, community in action. Keep up the good work !!

  290. I see that you are going to include all the interface in the locale file. Thats great 🙂

    Spanish translation ( es_ES ):


    There is a duplicate sentence in the translation file.

    I hope to see a lot of language files soon! Come on guys!

  291. Hey Ivan i translated it to Portuguese – Brazil (pt-br), here is the link:


    PS: there is a duplicated translation row for “Your Facebook account has been successfully connected. Now you can fast login using Facebook Connect anytime.”

    I already removed the duplicated row from my translation!

  292. There we go, if anyone want’s to see it’s native language in future releases help us with translation:

    1. Open this link:

    2. Click “paste again” link on the right

    3. Translate sentences after comma separator (left sentence needs to be in English, right one in your language)

    4. Click “Save Paste” button at the bottom

    5. Copy url from your browser and paste it here in comments along info which language that is (url looks like the one I provided in step 1)

    When I manage to collect decent number of translations, I’ll include them in release.

    Thanks !!

    p.s. In “Thank you for registering with %s” %s will be auto replaced by your store name set in Magento like “Thank you for registering with Inchoo Playground Store”

  293. I would like to add translations.

    I’ll prepare english csv file and post it here. Our readers are from all over the world, I hope they would be willing to help 🙂

    I’ll add Croatian one, lol.

    Thanks for support and idea !!

  294. I love this extension 🙂 Works great. Thank you!

    Mi little contribution to it. I’ve modified the extension to get the top.link translated to the locale languages. Maybe it should be interesting to you for next releases.

    1.- [b]Set the language file in module config[/b]. Edit [b]app/code/community/Inchoo/Facebook/etc/config.xml[/b] and add the following code into the frontend section:


    2.- [b]Edit the current layout to load the translation.[/b] Edit the file [b]/app/design/frontend/default/default/layout/facebook.xml[/b] (or maybe better copy this file to your template folder and edit from there). Replace the code:

    		<reference name="top.links">
    			<action method="addLink"><label>Connect with Facebook</label><url helper="facebook/getConnectUrl"/><title>Facebook Connect</title><prepare/><urlParams/><position>110</position><liParams/><aParams><rel>facebook-connect</rel></aParams></action>


    		<reference name="top.links">
    			<action method="addLink" translate="label" module="facebook"><label>Connect with Facebook</label><url helper="facebook/getConnectUrl"/><title>Facebook Connect</title><prepare/><urlParams/><position>110</position><liParams/><aParams><rel>facebook-connect</rel></aParams></action>

    3.- [b]Create the language file in your locales folder.[/b] For example if you want the module translation to spanish_Spain create the file [b]/app/locale/es_ES/Inchoo_Facebook.csv[/b] with the following content:

    "Connect with Facebook","Conectar con Facebook"

    You should create the file for all the languages that you have active in your site.

    Hope this helps.

    Thank you again for this extension.

  295. justJust got it to work! the problem was that i messed up something in the installation process.

    There still one little thing that is really annoying me, when i get to the login page and hit “connect with facebook” it redirects me to the dashboard page instead of redirecting me to the home page… does anyone know how to change it? tks

  296. I am using magento and i cant use this line of code:

    Connect with Facebook

    to generate the facebook login link, i would need it in a xml format so i can use it? how could i do it? can anyone help me?

  297. I wonder is there any simple option to display user’s facebook avatar when he gets logged in? I don’t need to store it on db, just display. Thanks in advance!

  298. Hi Ivan,

    This 094 version works on my two sites 🙂 on, mage CE version 1.500 and 1.501 with no errors. Did test in IE, ff and chrome

    Do you know there are commercial versions of this extension?

    Thanks for true open source you guys from inchoo do!

    Keep up that way

  299. I love this extension it’s such an easy way for users to create an account, only problem I have is that I’m the only person it seems to work for?

    I’ve successfully used it on 2 separate PC’s using FF and Chrome, but anyone else that tries just gets the error message?

    Anyone know why this would happen?

  300. You’r right, posting wall is not the subject off this extension but when we got permission we might write customers wall when ever we want in the future. I’m using this extension and my customers just giving me their email now. In near future i will arrange sth to post their wall but i can’t able to post my first customer’s wall. i want to put permissions to my pocket 🙂

  301. I’m not sure is it even possible to post to customers wall as application admin if customer granted publish_stream (post to wall) permission to application ?! I think it can be done only through api-s, that’s why is useless to just add permission. Please correct me if I’m wrong ..

  302. Hi Ivan you’re right, if some coder need to add new features he could easily add needed permission grants. But i can’t 😀

    I know turkish customers are just clicking “allow” when this popup shows. So i want to write something to their wall 🙂 Is this an abuse. May be. But it’s also a war between other e-commerce web sites and mine.

    Code is checking valid email i guess, so i think it can check gender or birthday. If facebook returns not valid birthday and gender. code should say “ok, it’s your call”.

    But if customer gives those permissions , why couldn’t i use it.

  303. Hi,
    I am getting the below error:

    Invalid attribute name: facebook_uid

    I am running on magento 1.3.2.

    Any help would be appreciated.



  304. I was thinking about it really, but I didn’t see the point because current functionality of the module (login/registration) doesn’t require nothing except e-mail permission, so why ask for it. And if someone customize module and add some new functionality, he’ll just easily add new permission, like I did for several clients.

    If I introduce some new features in next versions, fb popup will just ask customer for missing permission on first connect.

  305. Thank you for locale settings 🙂

    You should add wanted permissions preferences i think. I really don’t like new way. (just email why??)

  306. Hello all,

    I just “pushed” new and improved 0.9.4 version with many improvements and some new features (new graph apis, asynchronous loading, fb language settings, etc.) to my github account.


    It’s still in testing phase, but it would be great if someone is interested to try it out. I believe everything works, but don’t recommend production environments before official release.

    As you can see in changelog, I took into consideration and implemented many things you all mentioned in comments here 😉 Thanks for the input !!


  307. Excellent job. Thank you. I need one more thing please let me know how do i add locale.

    I need to send “locale%3Dtr_TR” to fb instead of “locale%3Den_US”

    Also who suffers from chrome and safari button problems check my site and copy inline style options that my button has. I copied from another site and taaa daaa it works.

  308. Secound problem:

    The user is logged in (via facebook) and show your name correctly in account information, but the checkout page empty the first and last name. (so the user can type, when the system is stored somewhere).

  309. update:

    the header linking work chrome and firefox.

    Only the customer/account/login/ facebook login not work in chrome.

    thank you

  310. Thank you for development. It’s work, but:

    Linux Firefox:

    The first login via facebook only on customer/account/login/ login page work. (in header link not work, but the secound login work with header link 🙂

    Unfortunately in Chrome not work the customer/account/login/ login page connection, and the first login not work the header link.

    magento 1.4.2, php 5.2.14

    how to solve this problem? (chrom and first login in header)

    thank you

  311. @Bart, check your application api key and application secret, because for me everything is working well after changing definitions of __get and __call methods. Thanks @pishkus!

  312. @pishkus tnx for the tip, I don’t get the fatal error anymore, but there is now a new error in a red box:
    “Facebook Connection failed.” Any ideas?

  313. those who get the zend_log fatal error it’s because you are running php 5.3.
    the solution is to change the definition of __get and __call methods from private to public in community/Inchoo/Facebook/Model/Client.php
    public function __get($var)
    public function __call($method,$args)

    Hope this helps.

  314. What’s the status of this module?
    I’m looking for a module that can simply do what this module is designed to do 😉

    But have tested it on the demo site, but it’s not working in Chrome 🙁

  315. i’m using magento version “”,

    When I press “Connect with Facebook” on the top-links, I get: “Facebook Connection failed.” and the “Connect with Facebook”-button on the login-page doesn’t work at all

  316. Hi

    Please help i have install with magento the problem is cannot connect from homepage
    no popup show if click on homepage but others page it’s work normally.


  317. Getting facebook connection error message + button not poping facebook login window. I am using Magento CE 1.4.2. Anyone got this working ?

  318. I was trying to test the Facebook connect on webkit browsers and am having the same failed luck. It crashes on Safari and does not connect on Chrome.

    Any word on version 1.0 being released?

  319. I have the same problem as allen, it only works on ie, it doesn’t work on chrome,

    I hope that you note this.

  320. connect with facebook button doesn’t work on webkit browsers (safari/chrome). has anyone else tested it?

  321. Dear All,

    Sorry my bad english.

    I can find your Magento Facebook Integration modul, but i don’t tested now.

    This modul work more than one shop? It’s work multisite, multistore with _multi top level domain_ (or only subdomains?)?

    thank you for your answer and the excellent modul.


  322. I have this connector working successfully on my site, now i need to make it look good.
    I have found all the files required.

    Would someone be able to post the php code for replacing what David Toro said:

    You can change the original FBC button with background style

    button rel=”facebook-connect” class=”form-button” type=”submit” style=”background-image: url(‘http://static.ak.fbcdn.net/images/fbconnect/login-buttons/connect_light_medium_short.gif’);”

    I do not know how to split this into php and css

    thank you

  323. facebook coonection failed….. no pop is open on click of facebook connect…………..any solutions?????????????

  324. When we will be able to see that extension on magento connect ? It’s easier to install and uninstall.



  325. Hi,

    I am getting error when connecting via facebook:
    Fatal error: Class ‘Zend_Log’ not found in …./app/code/community/Inchoo/Facebook/Model/Client.php on line 156

    Weird, because this line is function definition:

    private function __get($var)

    Using Magento
    Thanks for any help.

  326. This is obtaining a bit extra subjective, but I much prefer the Zune Marketplace. The interface is colorful, has far more flair, and some cool features like ‘Mixview’ that let you quickly see related albums, songs, or other users related to what you’re hearing. Hitting some of those will target that item, and another group of “neighbors” will come into view, letting you navigate approximately exploring by similar artists, songs, or users. Speaking of users, the Zune “Social” can also be great fun, allowing you to find others with shared tastes and achieving friends with them. You then can listen to a playlist created depending on an amalgamation of what all your friends are listening to, which is also enjoyable. Those worried about privacy is going to be relieved to know you are able to prevent the public from seeing your personal listening habits should you so choose.

  327. Hi thanks for the great extension which I managed to install successfully. It worked fine before but now I get an error message saying Facebook Connection failed

    Any help please?

  328. The plug in is great, i used the it and it perfectly works fine on my local setup but the same is not working when put it on the production , my production machine is in linux. i was able to integrate the module and i am also getting the login window when i click connect with facebook option which prompts for login name and password but when i provide the login crendientials and allow the user to access my site , it throws a Error 500 , i am little clue less here what is happening

    Any help is appreciated

  329. Thanks for the great plugin. The “add to wishlist” does not work if you were not logged in and choose the “connect to facebook”. Also not on your demo site it seems. You will get on the account page without the article in your wishlist.

    Is that a known issue maybe?

    Thanks for any help.

  330. Yes Vijay,

    You can change the original FBC button with background style

    button rel=”facebook-connect” class=”form-button” type=”submit” style=”background-image: url(‘http://static.ak.fbcdn.net/images/fbconnect/login-buttons/connect_light_medium_short.gif’);”

    And add more css attributes for better apparence

  331. Hi,
    I have used the fantastic extension and it was working great, but from today moring it started giving “Incorrect Sigtnture” Error from facebook..
    Any Idea??

  332. May I make a suggestion? You might want to add translate=”label title” and a element to the facebook.xml for people utilizing translations. Looking forward to 1.0 (any word if it will utilize the new Facebook protocols?)

  333. ok, one more time …

    a rel=”facebook-connect” class=”fb_button fb_button_medium” div class=”fb_button_text” Connect with Facebook /div /a

  334. Hi guys, thanks for a great module … I have been trying to style the button according to Facebook CSS but I m running into the above mentioned problems with:

    the event “click” catches a click but
    e.element().tagName = “span” and not “button”

    This does not work, neither when using span …

    Connect with Facebook

    Thanks for any help!

  335. Thanks for a terrific extension. Installed with no problem!

    Now I’m trying to figure out how to add a class to the Facebook Connect link so I can replace it with a recognized Facebook Connect image.

  336. Great extension for magento! I was seeing the code and is very useful. I integrated perfect with my website.
    Congrats! continue with the next release and Thanks for sharing! =)

  337. Hi,

    I have tried with this extension, but when i try to connect it keeps on returning “Facebook Connection failed” error.

    Any help?

  338. Hello , this extension is great , how can we map more data like user birthday into customer account ?

  339. Works great guys, just installed this on http://www.junglespice.com.au/corset.html.

    Their is a issue though, when a Guest user adds a product to their shopping cart and then clicks on Shopping cart, if you click on ‘Connect with Facebook’ you get a error. Any chance this will be a feature in the next version or the ability for a user to use facebook connect when checking out.

    Other than that guys great job and many thanks.

  340. I tried to install this extension with magento, it always give me an error “Facebook Connection failed. Service temporarily unavailable.”

    Please can someone help me?

  341. hello, i tried this module but don’t work for me.
    I see in facebook app there isn’t field ’email domain’ in tabs advanced.
    In magento i’m using a package name: ‘elegant’, so in facebook module’s folder tree i change
    is it correct?

    But facebook connect don’t work.

    Can someone help me?

  342. Hi,
    I’m back is there a way change the ‘plain” link in the header menu by the logo of facebook connect ?

    @TRONDAGE: I had the issue on my site, the problem was in the url I gave to facebook in the app, be sure your url put in facebook app is the right on no mistake at all.

  343. Tried the module today, but can’t get it to work.
    When I press “Connect with Facebook” on the top-links, I get: “Facebook Connection failed.” and the “Connect with Facebook”-button on the login-page doesn’t work at all (can’t even click it)..

    What have I done wrong? I think I have filled all required fields on the Facebook-app page.

    I’d love to make this module work! 🙂

  344. Hey,
    Just to congratulate, really really great work, easy install, works immediatly.
    Once again really good job.
    I agree with Steph, I also had to uninstall the Magestore_Facebook_module, no matter it was useless for me.
    Thank you very much !

  345. It’s possible that our module and Magestore_Facebook module seen in this error don’t like each other, so try to disable one of them. Our Inchoo_Facebook can be disabled by deleting app/etc/modules/Inchoo_Facebook.xml file and refreshing cache.

  346. I’m getting the following errors now;
    Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, ‘Magestore_Facebook_Helper_Data::getConnectUrl’ was given in /home/blackcyc/public_html/app/code/core/Mage/Core/Model/Layout.php on line 326

    #0 [internal function]: mageCoreErrorHandler(2, ‘call_user_func_…’, ‘/home/blackcyc/…’, 326, Array)
    #1 /home/blackcyc/public_html/app/code/core/Mage/Core/Model/Layout.php(326): call_user_func_array(Array, Array)
    #2 /home/blackcyc/public_html/app/code/core/Mage/Core/Model/Layout.php(216): Mage_Core_Model_Layout->_generateAction(Object(Mage_Core_Model_Layout_Element), Object(Mage_Core_Model_Layout_Element))
    #3 /home/blackcyc/public_html/app/code/core/Mage/Core/Model/Layout.php(212): Mage_Core_Model_Layout->generateBlocks(Object(Mage_Core_Model_Layout_Element))
    #4 /home/blackcyc/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(343): Mage_Core_Model_Layout->generateBlocks()
    #5 /home/blackcyc/public_html/app/code/core/Mage/Cms/Helper/Page.php(106): Mage_Core_Controller_Varien_Action->generateLayoutBlocks()
    #6 /home/blackcyc/public_html/app/code/core/Mage/Cms/Helper/Page.php(52): Mage_Cms_Helper_Page->_renderPage(Object(Mage_Cms_IndexController), ‘home’)
    #7 /home/blackcyc/public_html/app/code/core/Mage/Cms/controllers/IndexController.php(45): Mage_Cms_Helper_Page->renderPage(Object(Mage_Cms_IndexController), ‘home’)
    #8 /home/blackcyc/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Cms_IndexController->indexAction()
    #9 /home/blackcyc/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch(‘index’)
    #10 /home/blackcyc/public_html/app/code/community/ArtsOnIT/OfflineMaintenance/Controller/Router/Standard.php(46): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
    #11 /home/blackcyc/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(177): ArtsOnIT_OfflineMaintenance_Controller_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
    #12 /home/blackcyc/public_html/app/code/core/Mage/Core/Model/App.php(304): Mage_Core_Controller_Varien_Front->dispatch()
    #13 /home/blackcyc/public_html/app/Mage.php(596): Mage_Core_Model_App->run(Array)
    #14 /home/blackcyc/public_html/index.php(78): Mage::run(”, ‘store’)
    #15 {main

    When I try to go to http://blackcyclemama.com/facebook, I get a blank page. I’ve tried to understand the comments above regarding the 301 redirect— could that be the problem?

  347. Thanks Toni,
    But I wanted to say that, when the user account is already associated with the facebook connect, it may be wise to hide the menu. Anyway, that’s not the big deal since I can do it on my own.

    I have another question, may be everyone is waiting for the next version of this module. For now, all it does is; it associates the user account at magento store(s) to their facebook account or we may say it allows for quick registration and login to users who have their facebook account. But, is it possible that in the next version user(s) from the magento store(s) can allow the site to publish their purchase history and customers will have the option to automatically tell friends about their purchases. They can choose to have/not have their purchase details displayed on their Facebook wall.

    Just curious.

  348. @Linden Burke,

    you can’t, because Inchoo made a registration module via facebook, not only a simple loggin, the email customer is stored as a magento customer, then facebook never provides their member emails to any website (for spamming reasons) unless you choose to give your email by yourself.
    the “proxy emails” comes from Facebook, you cannot disable that proxy, even if you try to do it manually using Facebook connect API.


  349. hi there, this module is really well done, thanks for sharing.
    I ve seen an “issue” but it’s not a real issue and maybe somebody noticed it.

    in the example provided with the module, and the frontend

    Connect with Facebook

    but actually this code doesnt work because of the span tag.

    the event “click” catches a click but
    e.element().tagName = “span” and not “button”

    just to fix it, remove the span tag (apply a css if needed)

    otherwise, really good !
    i ve been through the feature to get all friends registered in the website.
    for those who want to hide “connect with facebook”, the best thing to do is to hide it in the menu and make a button with facebook icon, then disable it when not needed.
    Cheers, thx inchoo !

  350. When it ries to connect it offered me the option to use a proxy email (xxx@facebookxxx) or my actual email, the default being the proxy. However it didn’t accept the connection with the proxy email, but did with the proper one. Just a bit confusing for users. Can this proxy option be turned off?

  351. Tuppi,

    You could hide the link to the logged-in users, but you might wish previously existing users to be able to connect their accounts with Facebook (users that are registered but not with Facebook Connect).

  352. Hey Ivan,
    Nice to hear that the extension is finally up to the Magento Connect.

    I have another query,
    Since, I’ve already connected an account with facebook connect and now it is associated with the facebook. But still, there is a link for connecting with the facebook.
    So, I mean to say that, why should we put the link after we associated the account with the facebook. Shouldn’t we have to hide it.

  353. @Ivan: I just added some code for retrieving friends uid list. We can display only friends who have an account in Magento by checking their e-mail addresses, but for that we have to call the users.getInfo for each friend, and Facebook API is sometimes slow when u have to retrieve like 200 friends !

    Maybe we could store uid in Magento customer account for faster response… But is it legal to store Facebook uid in Magento DB ?

  354. @charobnjak

    We checked your link, great store, we’re always glad to see Magento used in our region. Translation is great! 🙂

  355. @D.B. Thank you. I’ll translate above comments for other readers that might be interested 😉

    – If you disable module under Configuration-Advanced, the “Connect to Facebook” link is still displayed
    It’s noted and I’ll probably add this in one of the future versions

    – link “Connect to Facebook” doesn’t change status, like for example “Log In Log Out”
    This is a feature, not a bug. If customer is logged in in Magento and click Facebook connect, his Magento account will be automatically associated with his Facebook account.

    – it would be great to automatically send wall-post “Thanks for buying” to customer after shopping
    – it would be great that customer can see after login which of its friends are also registered in Magento and to invite the ones that aren’t
    We’ll see what we’ll add or change in future versions. All ideas are appreciated, just keep them coming !!

    @Tuppi Sau: We’re preparing Magento Connect release, it should be available soon.

  356. Thanx for the reply Ivan,
    I’ve tested the your extension at the local environment and it worked like charm (I’ve used: [HostIP:19.168.XXX.XXX]/magento/) and set up the application using Facebook application credentials and it worked flawlessly. Very good application indeed and above all it is on GNU/GPL.
    Another query: So when is this application available from magento/connect.
    Will be very helpful to other community users too.

  357. Great work Ivan. Thank you!

    a sad primjedbe…sitne su 😉
    – Ako se modul u backend Configuration-Advanced deaktivira i dalje se vidi link “Connect to Facebook”

    – Link “Connect to Facebook” ne mjenja status kao npr. “Log In Log Out”

    Bilo bi super kad bi:
    + nakon kupnje, automatski korisniku poslat wall-post “hvala na kupovini”…

    + da korisnik moze vidit kad se logira u magento, koji od njegovih prijatelja su takoder u magento registrirani a koji nisu, te da ih moze pozvat (invite friends)

    Modul je odlican kao i sve ostale postove sto sam citao na Inchoo!

  358. @Michael james: just follow the directory structure in zip file, for example file
    will be at exact same place starting from root of your Magento store

    In most ftp clients you can just drag app folder to server, and everything will be uploaded at proper place.

    Then just refresh your cache from Magento administration(System->Cache Management) and everything will work.

    We’re preparing Magento Connect release that will simplify installation, so you can also just wait for a couple of days.

  359. @Michael_James The base folder is your app folder in the root directory. Follow the folder paths on your site just as they are in the download directory structure. Once you get to a directory that is showing on the download, but not your site’s folder, drag a copy of the download into the parent directory on your live site.

  360. could anyone please tell me where i put the download files i’m a bit of a novice but have had a bit of experience playing around with all the backend files. any help will be much appriciated this looks like a great extention

  361. @Tuppi Sau: You can test it in local environment, but there are some limitations. Whatever is accepted on Facebook as Connect URL will work.

    https://inchoo.net/ or similar won’t work works never tried

    But you can always setup virtual host on your local server like
    http://www.example.com ,it will work also.

    And just enter example.com or similar for Email Domain in Facebook settings.

    I hope this helps. Good question btw 🙂

  362. Nice Application, but I have one query:
    Can I test it on the local environment, cuz, the api key that will be provided by the facebook will be for the specific domain only and the local host domain, in my opinion won’t be supported. I will test the application on my own domain but a reply from inchoo.net would be very supportive to all the other users.


  363. Is it working on 1.4 version ? i installed but something is error .
    could anyone help me to that
    Thank you

  364. @Rick: Something is wrong with prototype library (“$ is not a function” errors) on homepage of mentioned site, that’s the reason top link isn’t working. Prototype library is core javascript library used in Magento and this extension requires it.

    I’ll check button problem in Chrome, thanks for reporting.

  365. Anyone else experiencing issues with Chrome and not being able to login using “Connect with Facebook” in the account login page? (happening on two, independent sites)

  366. Thanks for the extension, Ivan. I have it running fine on one development site, no errors, etc., but on http://www.xtracycle.com, I’m getting a “Facebook Connection failed” if I click the top.links link. But if I click on the “Connect with Facebook” link in the login section, it works fine. Any thoughts as to what might be provoking that error?


  367. Awesome, Ivan! Works smoothly. Thanks for releasing this for free, much appreciated. 😀 Thanks too, since we’ve been waiting on Mark to fix the bugs in his extension that costs $100!

  368. Extension has just been updated to work with 1.3.2.x versions of Magento.

    Please note that extensions template and layout files have been moved from
    app/design/frontend/base/default to
    to be compatible with older versions.

  369. @Ivan Weiler: Yes you can add me for future beta versions, I’ll be glad to help when i have time 😉 My principal e-mail is in this post.

    @mpoulieris: Did you try with and without “www.” in your domain ? Because I tested your site, and it redirects to the “without www” version 😉

    Next week I’ll try to tune it for adding an address in Magento. Today I managed to grab Facebook friends list and display it on customer dashboard in Magento, with a list of products they shared on FB… But rough coded again ! Hope to make it clean in the module next time !

  370. @Guilio Del Fava: Top link is added through facebook.xml layout, so you can just add class attribute like:


    and you’ll be able to style it, but you can just add rel=”facebook-connect” to any <button> or <a> link anywhere in theme and connection popup will be triggered.

    @M.Richard: It’s great to see that you’re playing with compatibility and additional features. I was also planning to see what can be done with addresses in future versions. I’ll make sure to add your e-mail to receive future beta updates, if you want of course.

    .. and I’m really thinking about adding 1.3 support due to high demand 🙂

  371. Got this extension working in Magento After receiving the facebook_uid attribute not found error, and alot of back and forward emails between myself and @M.Richard, I manually added the attribute to my database by exporting the required attribute data from my Magento Test store, (after installing the extension their first) and then importing it to the eav_attribute table in my database.

    Works perfectly now.

    Now just need to figure out how to change the button and the text at the top to use the facebook connect buttons.

  372. I’m working on it to pick up address information from Facebook profile and automatically create a billing address in Magento to simplify checkout 😉

  373. Hello all,

    We just setup Demo store where you can preview Facebook Connect functionality. Just click “Connect with Facebook” link in upper right corner or navigate to login/registration page.

    The post is also updated with detailed setup screenshots.

    Regards 😉

  374. i am trying to figurate how i will make this work but i cant,all files in my ftp have 777,the facebook connect module have 775,so i change it to 777,i see the other modules and i do the smae in the facebook module,the problem is that in the http://www.2smartmarket.com/facebook i have 404 error and i dont have the facebook connect,didnt show up in my configuration:Configuration-Customer-Facebook Connect,whatch wrong?

  375. Hello again,
    I managed to make it work with, a little bit rough but it worked

    In /app/design/frontend/default/default/template/customer/form/register.phtml , you can trigger manually addAttribute function from sql module directory like this :
    $installer = new Mage_Eav_Model_Entity_Setup(‘core_setup’);
    $installer->addAttribute(‘customer’, ‘facebook_uid’, array([…]);

    Then go to your register page :
    Then remove these installer lines.

    In /app/code/community/Inchoo/Facebook/controllers/Customer/AccountController.php , comment lines 126-144 (previous version of Magento doesn’t store birthdate and gender…)

    Hope this helps

  376. Hi guys, nice work for this module, saved me a lot of time 😉

    Guilio, I have the same issue with, I’m checking whether the install was executed. It was, because a new record has been inserted in core_resource (facebook_setup)

    But customer and eav tables don’t contain the new “facebook_uid” attribute. So maybe we have to manually insert the right data at the right place now…

  377. @Guilio

    You should never allow your users to access the other form of domain anyways.

    From SEO reasons, you need to choose www or non www version of your site and redirect the other one. Otherwise you’ll get duplicate content issue, link juice spreading to somewhere you don’t need it, and don’t even get me started on SIDs in URLs.

  378. Ok, the solution is to create a 301 redirect so that when uses type your domain name without the www then the browser redirects them to http://www.yourdomain.co.za and then your facebook connect app will work.

    Creating two apps in facebook will not work due the the api and secret keys being unique for each app and hence each domain.

  379. Trying to get the the extension to work with magento Getting a facebook_uid attribute not found error. Any help appreciated.

    However on Magento 1.4.x make sure you disable StrikeIron Extensions as it does not work with this facebook connect module. Also you might have to setup 2 different applications in facebook. Here is the reason why:

    On testing, I created my app in facebook with the domain: http://www.domainexample.co.za, and then I got an error when testing from facebook about cross domain etc. The problem is, I had the domain in my browser as http://domainexample.co.za and facebook saw it as a different domain.

    So unless I am missing something you might have to setup a 301 redirect for that domain, to point the http://www.domainexample.co.za to http://domainexample.co.za (not sure if it will work though) or you will need to setup two apps with each version of your domains address.

    Comments are welcome in this post.

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.