× Joomla Facebook Connect support forum

Topic-icon Feature request - function to populate user_map table

Active Subscriptions:

None
Hi there !

congratulations for this great component. I am new to Facebook API development so I have one question:

When a normal, already logged-in Joomla user clicks Facebook connect - is it possible to retrieve the FB userid and store it to the user_map table ?

This function would be very useful. I have many users that are registered for years on my site. Meanwhile they are also registered to Facebook. I don't want that a new user (or temp fb_user) is created when they click fbconnect. The other advantage would be that there already their correct mail address is used.

I hope I could explain it .. sorry for my english.

Greetings
The topic has been locked.
Support Specialist
15 years 3 weeks ago #652 by alzander
Your english is fine :)

When a normal, already logged-in Joomla user clicks Facebook connect - is it possible to retrieve the FB userid and store it to the user_map table ?

This is the current way JFBConnect works. If a user has an account on Joomla and Facebook already, they can first log into your Joomla site, and then hit the FB Login button. This will associate the 2 accounts in the usermap, and not create a new user.

Going forward, we're just starting the implementation of asking the user if they already have a Joomla user on the site when the click the FB Connect button. This will allow them to associate their FB account with their Joomla account without having to login to the Joomla side first.

Long(er)-term, there are ways to ask Facebook if a specific email address has a Facebook account. In that case, we then ask the user if they'd like to associate their accounts. Please understand, there is still now way to fetch an email address from Facebook, only to get the Facebook userid from an email address.

Let me know if this helps answer your questions.
The topic has been locked.
Active Subscriptions:

None
15 years 3 weeks ago #659 by bcagalj
Sorry I totally overlooked that - first login in Joomla then hit Facebook Connect <!-- s;-) --><img src="{SMILIES_PATH}/icon_e_wink.gif" alt=";-)" title="Wink" /><!-- s;-) --> Works perfect ...

Your future plans sound great .. that will make the integration perfect. Can't wait to get the update. Great work !
The topic has been locked.