A feature request would be to merge facebook users with existing drupal users. So if someone adds the facebook app he is asked to login to the drupal with its existing drupal username or to register with the facebook username. After that the facebook will always use the drupal user to view the drupal info.

I tried to set it up with the "Alternate Login" drupal module, but it did not work.

Comments

Dave Cohen’s picture

Correct me if I'm wrong, but you're asking for something like this...

If user visits ?q=user/login, or ?q=user/register while on a facebook canvas page, they are presented with the normal drupal form. After logging in, the facebook account and the drupal account are linked, so that future visits to canvas pages will not require a login.

If I understand correctly, this would be pretty easy to do, and makes some sense.

A while back, I put in some code that redirects ?q=user/login and ?q=user/register to facebooks require_login and require_add, but maybe that was a bad idea and your idea is better.

As I think about it more, I remember there are some issues around putting forms on canvas pages when the user is not logged in to the app. Because Drupal uses form tokens that require session state, but session state is not available on canvas pages when the user is not logged in. So the interface would be really weird, first requiring a facebook login, then requiring a Drupal login. I'm gonna think on this a bit. It would be great if we could make forms work even when session is not available.

catorghans’s picture

Yes, I think I am asking what you say.

I'm not sure if I understand you correctly. Especially your last sentences are out of my league.

I am part of a community with a growingly active drupal site, where all members have their own login.
Lots of those people also have a (most of the time) different facebook login.
What I think is handy is that people who use facebook just can access the drupal with their own "roles" and "rights" within the facebook interface, so facebook is extended with "their" drupal community.

beejaysea’s picture

The thing that I saw on other apps, and thought was useful was this: A link to "I already have a ________ account", which then does a redirect to that site's login page, not on the fb canvas. Once logged in, the data was sent back to that fb session for that user, and was then integrated appropriately to the fb profile, etc. The specific application I saw this on was the "StumbleUpon" application.

Gabriel R.’s picture

Version: 5.x-1.x-dev » 6.x-3.x-dev

I remember reading at some point that this feature was implemented, but maybe it was on another Drupal/FB module.

If not, is there any hope to have it soon?

Thank you.

Dave Cohen’s picture

Status: Active » Fixed

Configure fb_user.module to not create accounts automatically, but do map accounts. Then it will work as described. (And I believe these are the defaults)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.