Hi,
First of all, thanks for that great module.
I have some questions :
- How can I map the FB user picture to the Drupal avatar?
- Is there a way to use the FB name for Drupal username (the mapping doesn't work and it seems it is hard-coded in _connector_create_account() ?
Thanks in advance
Laurent
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | connector-user_save_hook-1503278-5.patch | 531 bytes | bburg |
Comments
Comment #1
voxpelli commentedFacebook names aren't unique - how would you be able to use them as usernames? Usernames has to be unique? You can use them when presenting users - but behind the scenes new users will have to be given unique usernames - right?
Comment #2
agence web coheractio commentedYou are right. I didn't notice that.
What about avatars ? Can we feed them into Drupal's user picture ?
Comment #3
agence web coheractio commentedFor those who are interested.
It seems that FB user picture can't be retrieved through query parameter hence it can't be mapped in the connector (if this is possible, please let me know).
However, you can fetch it with the following code taken from fboauth.module
Laurent
Comment #4
frans commentedSee also
http://drupal.org/node/1450664
And the patch that is used there.
We try standardization for fields, but it is not so easy.
The profile image from FB is not a real endpoint, it redirects to the image itself. That makes it even worse.
Comment #5
bburgInstead of trying to standardize how these fields are saved, I propose invoking a hook after user_save in _connector_create_account() to allow other modules to manipulate the user, in the way they require, while we still have the provider data available.
Immediately after the user is created:
Patch for 7.x-1.0-beta2
Comment #6
socialnicheguru commented