I am trying to make a custom social login for magento how can I go about the integration of facebook and googles login with magento's login system using php etc.
I am unsure of actually how to go about adding a login process to magento?
Thanks
Magento – How to Make a Custom Facebook and Google Login
facebookloginPHPsocial
Best Answer
I have developed that extension myself but I am able to share you general ideas. I want to make it a popup so I added a block with before_body_end hook
I used this javascript code for hook magento default account menu. When click login menu, it will open up the login bootstrap popup.
One important part is, generating facebook login url, i think you are confused this part. I used facebook sdk for this part. It is used inside my facebook helper for creating facebook login url.
For the helper to work properly, you must create a facebook application delicately for your magento website, it will give you application_id and application_secret code. You can see the steps here
I put these params into extension configuration as in the image and get it in the helper above as you see.
The facebook login button will have this generated code for example:
As you can see the above helper code, There will be callback action for processing facebook callback
Here is its code:
They are most of important things for building a custom social login with magento, in this tutorial we are using facebook but you can use this kind of pattern for any kind of social platform. The difference is just a little.
As in my extension, final result looks like this:
I hope these guides helpful for you.