Magento – How to identify login user with Social Connect Magento Extension

developmentmagento-1.8modulesocial-buttonsthird-party-module

I am using Inchoo Social Connect Magento extension

which is working fine but my concern is that how can i identify user is login by which account? if email address are same for Google and Facebook account. its return me in login customer session Facebook id and and Google id both.

I need to determine this information just because when user enter there comments in product detail page[product comment is my custom module]. I'll display there Avatar picture from Google/Facebook account.

Any one please help.

Best Answer

Disclaimer: I have not used this extension but have simply looked at there code in github.

It appears that each login action creates an item in the registery containing the user data. You should be able to check which item is there from the following:

  1. inchoo_socialconnect_linkedin_userinfo,
  2. inchoo_socialconnect_twitter_userinfo,
  3. inchoo_socialconnect_facebook_userinfo,
  4. inchoo_socialconnect_google_userinfo,
Related Topic