• Good afternoon, tell me how to display a link in the user’s profile to social networks that the user has connected to his account

    1 situation
    User logged in via Facebook
    The database received information about:

    nickname
    first_name
    last_name
    description
    rich_editing
    syntax_highlighting
    comment_shortcuts
    admin_color
    use_ssl
    show_admin_bar_front
    locale
    wp_capabilities
    wp_user_level
    thechamp_social_id
    thechamp_avatar
    thechamp_large_avatar
    thechamp_provide
    thechamp_current_id
    session_tokens

    Logically, I need data from meta_key – thechamp_social_id
    but some incomprehensible numbers are written there (example: 108260737653817), I would like to form a link to the user profile, for example:
    > Message (bad code, sorry)

    how to do it?

    2 situation

    If the user is logged in and attached several additional social networks, how to display additional links from the database, respectively?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter edwardnewsky

    (@edwardnewsky)

    Logically, I need data from meta_key – thechamp_social_id
    but some incomprehensible numbers are written there (example: 108260737653817), I would like to form a link to the user profile, for example:

    <a href="https://www.facebook.com/profile.php?id=<?php get user meta ( thechamp_social_id ) <?>>Message</a>

    (bad code, sorry)

    Plugin Author Heateor Support

    (@heateor)

    If you need social ID of the social media account a user is using to login to your website via social login, you can use the value saved in the user meta “thechamp_social_id”.
    The link https://www.facebook.com/profile.php?id=<?php get user meta ( thechamp_social_id ) ?> will not redirect you to the Facebook profile of the user. Plugin already saves the profile link of the social media account of the user in the “Biographical Info” field of the WordPress profile if it’s possible to fetch profile link from the social profile data.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Link id to user social accout from data base’ is closed to new replies.