I am trying to develop a custom module for my d6 site that lets users register and login to my site just as a regular user would using the existing drupal login and registration system.
I looked at fbconnect module (which has not been updated to use the latest facebook php sdk [ver 3]), and drupal for facebook which maps a facebook login to a existing userid if a drupal user with the same email exists -- which is not what I am looking for.
What I am looking to do:
- User comes to my site. Clicks on login with facebook.
- He is shown the fb login popup. User grants permissions.
- At this point I register him to the site, and log him in.
- He now has access to all the permissions set for an authenticated user to create posts etc.
- He logs out. Comes back again and logs in, and this time all the content he'd created the first time is available to him just as it would a regular authenticated user.
I am having trouble visualizing the module structure. How would I achieve this? I know I need to use server side authentication as mentioned here.
I am well versed with creating Drupal modules, just having trouble thinking of the architecture of this. I would greatly appreciate a broad picture if anyone has some experience with this. I would be on top of the world, if someone has detailed steps to offer.