Support

Account

Forum Replies Created

  • Thanks, E. I’ve decided to look at it from a different perspective, and found the problem was actually with the “Facebook all” plugin. It appears that they weren’t necessarily creating all meta info when creating the member. So, all it took was a few lines in the plugin to update_field all of those fields with default values. All is good.

    Thank you!

  • Hey, Elliot.

    Thanks for the quick response. I should have added some more code to my discussion. The “Facebook All” does create WP users. It really does a great job in filling out user names, websites, bio… all that stuff. What it doesn’t do, however, is attach the custom fields created by ACF that are related to that user.

    So, to get the user ID, I use this code in the header, so that I can acquire the “author ID” (this client is calling the “user” the “author”):

    	global $current_user;get_currentuserinfo();
    	$author_id = $current_user->ID;
    

    It seems simple enough. I’m enclosing a screenshot of the profile page to explain further:

    What the WordPress profile looks like

    Which, if we were using WordPress for anything more than just a back end for the site, would be fine. The user experience, however, is a little bit different:

    The actual user experience.

    So, my conundrum appears to be with step 3 as follows:

    1. Person logs in via Facebook for the first time
    2. A user in WordPress is created
    3. The custom fields need to be updated into the WP User’s profile.
    4. Gameplay ensues

    Any suggestions on how to achieve this, specifically?

Viewing 2 posts - 1 through 2 (of 2 total)