WordPress.org

Ready to get started?Download WordPress

Forums

Social Login
How to get facebook user's email address? (1 post)

  1. jecky
    Member
    Posted 1 year ago #

    Once the user login via facebook using Social Login how can i get the user's email address?

    I am getting username as shown below but do not know how to pull email address?

    foreach ($data->user->identity->accounts as $account) {
                        $user_emailId = $account->username;
                    }

    I am more interested of getting user's email instead of facebook email. I do ask user for the permission too.

    http://wordpress.org/extend/plugins/oa-social-login/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic