• Incredibly powerful plug in, I needed to also collect Gender and Age_Range from Facebook as apart of the Facebook’s Public_Profile – here is what to do to also collect it using this Plug in.

    in “wp-content/plugins/super-socializer/js/front/social_login/facebook.js” file

    Add;
    gender,age_range to the end of Facebook API line.

    in “wp-content/plugins/super-socializer/inc/social_login.php”

    Add to rows 209 & 210;

    'aim' => $profileData['gender'],
    'yim' => $profileData['age_range_min'], 

    This will add Gender into the AIM box of the user profile and Min Age Rage into Yahoo IM box. If you have created custom filed boxes then replace out as needed

    Add to rows 229 & 230;

    'aim' => $profileData['gender'],
    'yim' => $profileData['age_range_min'],

    Add to rows 379 & 380;

    $temp['gender'] = isset($profileData['gender']) ? $profileData['gender'] : '';	
    $temp['age_range_min'] = isset($profileData['age_range']) && isset($profileData['age_range']['min']) ? $profileData['age_range']['min'] : '';

    If you would like the Max age range, swap age_range_min out age_range_max or both.

    Dont forget to dequeue the original

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘AMAZING Plugin – Here’s how to collect Age Range & Gender from Facebook’ is closed to new replies.