• Resolved sgpagek

    (@sgpagek)


    Hello,

    I am creating a custom PHP code in my wordpress site with the purpose to generate a specific message for each user. So let’s say my DB is like this:
    —————————-
    | User | Message |
    —————————–
    | ABC | Hi, DEF! |
    | XYZ | Hellooo!! |
    —————————–
    I want it so that when user ABC logs in with his fb connect, the specific message is displayed (Hi, DEF!).

    By using your plugin, can you advise me on how to do this cross check? To do this, I will need to get the id/email + password of the logged in user and cross-check this with the information in the database to then extract the correct message. However, I do not know whether you store the id/email + password or if you do, how you store them. Can you please help me on this?

    I know that in wp_users table you have the following fields:
    – user_login
    – user_pass
    – user_nicename
    – user_email
    – user_url
    – user_registered
    – user_activation_key
    – user_status
    – display_name
    May I know what do you fill for each of these fields when someone logs in with the FB connect?

    Thanks! Your prompt reply would be greatly appreciated.

    Kind Regards,
    Pascal Gekko

    https://wordpress.org/plugins/oa-social-login/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello,

    please have a look at the function oa_social_login_callback in the file /includes/communication.php of the plugin. The is where the user data is being processed and stored.

    Best Regards,

    Plugin Author Claude

    (@claudeschlesser)

    Closing

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom PHP Code Social Login’ is closed to new replies.