![]() |
Capture additional information during Facebook registration - First, Last Name
Hello,
I have 2 custom profile fields - First & Last name. During Facebook registration, these details are also passed to the code since these are public. I've been trying to enable Facebook auto-registration & have been trying to get these 2 field info also from the FB authentication response and store it in the custom fields without success. Below is what I've tried. Could someone figure out what I need to do more to get this working. In functions_facebook.php, changed the below code to Code:
// the array we are going to return, populated with FB data Code:
// the array we are going to return, populated with FB data Code:
$profilefields['fallback_avatarurl'] .= (!empty($fb_info['pic']) ? $fb_info['pic'] : ''); Added this Code:
case $vbulletin->options['fb_userfield_first_name']: Code:
case $vbulletin->options['fb_userfield_occupation']: Can anyone help me here. Thanks. |
Can anyone help?
|
How to populate custom profile fields during Facebook auto-registration?
In hook fb_auto_register added the following code: PHP Code:
Even this didn't help PHP Code:
|
SOLVED.
The array is being requested as reference. So need to create the array and assign the array variable to the set_userfields method. |
All times are GMT. The time now is 10:24 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|