Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Login with facebook not working #69

Open
wajahatbashir opened this issue Sep 28, 2017 · 2 comments
Open

Login with facebook not working #69

wajahatbashir opened this issue Sep 28, 2017 · 2 comments

Comments

@wajahatbashir
Copy link

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
Copy link

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
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants