Title: Custom PHP Code   Social Login
Last modified: August 21, 2016

---

# Custom PHP Code Social Login

 *  Resolved [sgpagek](https://wordpress.org/support/users/sgpagek/)
 * (@sgpagek)
 * [12 years ago](https://wordpress.org/support/topic/custom-php-code-social-login-1/)
 * 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/](https://wordpress.org/plugins/oa-social-login/)

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

 *  [Denver](https://wordpress.org/support/users/denvw/)
 * (@denvw)
 * [12 years ago](https://wordpress.org/support/topic/custom-php-code-social-login-1/#post-4919791)
 * 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](https://wordpress.org/support/users/claudeschlesser/)
 * (@claudeschlesser)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/custom-php-code-social-login-1/#post-4919851)
 * Closing

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

The topic ‘Custom PHP Code Social Login’ is closed to new replies.

 * ![](https://ps.w.org/oa-social-login/assets/icon-256x256.gif?rev=2680668)
 * [Social Login](https://wordpress.org/plugins/oa-social-login/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/oa-social-login/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/oa-social-login/)
 * [Active Topics](https://wordpress.org/support/plugin/oa-social-login/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/oa-social-login/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/oa-social-login/reviews/)

## Tags

 * [custom](https://wordpress.org/support/topic-tag/custom/)
 * [php](https://wordpress.org/support/topic-tag/php/)
 * [sql](https://wordpress.org/support/topic-tag/sql/)

 * 2 replies
 * 3 participants
 * Last reply from: [Claude](https://wordpress.org/support/users/claudeschlesser/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/custom-php-code-social-login-1/#post-4919851)
 * Status: resolved