Marko-M / Inchoo_SocialConnect

SocialConnect Magento extension (login with Google, Facebook, Twitter or LinkedIn)
http://www.techytalk.info/magento/socialconnect/
Open Software License 3.0
139 stars 94 forks source link

Login with facebook not working #69

Open wajahatbashir opened 7 years ago

wajahatbashir commented 7 years ago

Hi,

i have install this extension but when i use login with facebook then i got this error at redirection time.

Fatal error: Call to a member function getId() on a non-object in /home/fpadmin/public_html/testingportal/app/code/core/Mage/Sales/Block/Order/Recent.php on line 68

another google and twitter are working fine. can you plz help me regarding this issue.

Thanks

maucosti commented 7 years ago

Hello,

Adding the following in the Helper/Facebook.php fixed my issue:

$customer->setConfirmation(null);
$customer->save();

$customer->sendNewAccountEmail('confirmed', '', Mage::app()->getStore()->getId());
/* saving confirmation set to null seperatly */
$customer->setConfirmation(null)->save();
Mage::getSingleton('customer/session')->setCustomerAsLoggedIn($customer);
mpalasis commented 6 years ago

@maucosti perhaps you should look at this commit instead: https://github.com/huynhphan89/Inchoo_SocialConnect/commit/65d6b369b607c4b2f99e2808ab206785e2e783cf