Ive installed drupal for facebook, the fb module, and it seems to work, but its not working how I expected. Im also using the openID module as well, but even if I just use the "connect" button that comes with the fb module I get the same results.

Basically when you try to log into the site using the drupal for facebook module, it just logs you into facebook and then shows your facebook avatar on your drupal website. However you are not an authenticated user in your drupal website, nor is any user created! Is this what is supposed to happen? If so, what is the point of that?

I was expecting this module to create a drupal site user that is linked to your facebook ID, like how openID would link your google account to a newly created drupal user. Am I missing a step? I dont understand.

Any help is greatly appreciated!

Comments

robato’s picture

Nevermind, I discovered the problem. If anyone else has this question, you need to go into your app settings and check "If user has authorized the app" under the "Create local account *" settings. By default "Do not create accounts automatically" is checked by default.

MakeOnlineShop’s picture

Hi,

So now the facebook module is creating users ? And can you get users Email address listed in your drupal users list ?

thanks.

robato’s picture

yeah its creating new users for sure. However Im still not sure how to get the email address!

viirak’s picture

Cannot find this setting:
"If user has authorized the app" under the "Create local account *" settings.

any idea?
:-(

Hammad83’s picture

From following script you can grab user information from Facebook just pass your facebook ID in $fbu variable.

$fb_account = fb_api($fbu, array('access_token' => fb_get_token()));

or dff made your account already grab from global $user->mail.

Enjoy:)

vishalchavda’s picture

Hello

I am using the latest 6.x dev branch of dff and am able to create local drupal acounts. But I cannot associate the email address from facebook to Drupal.

Can you please help in getting this to work

Regards

Vishal

goron’s picture

For anyone who's trying to do this, I would highly recommend the FB OAuth module. It's D7-native, clean and simple, and Just Works.

It can automatically create Drupal users for people who connect to Facebook, and import in any of their data, which you can map to user fields on your site.

therobyouknow’s picture

I really liked this module for the reasons you gave, but strangely some Facebook users couldn't login and were presented with an error message.