Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8437647
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T07:29:29+00:00 2026-06-10T07:29:29+00:00

Possible Duplicate: Facebook Graph API, how to get users email? I am playing with

  • 0

Possible Duplicate:
Facebook Graph API, how to get users email?

I am playing with Facebook API and trying to get available information from it.

$facebook = new Facebook(array('appId'  => 'id', 'secret' => 'key'));  
print_r($facebook->api('/my_username_or_id'));

which prints out:

Array ( [id] => my_id [name] => whole_name [first_name] => first_name [last_name] => last_name [link] => url_to_profile [username] => username [gender] => gener [locale] => es_LA )

But not email.
When I go to Facebook developer test site and set up my username or ID, I get something like this:

{
  "id": "id", 
  "name": "name", 
  "first_name": "first_name", 
  "last_name": "last_name", 
  "link": "link", 
  "username": "username", 
  "gender": "male", 
  "timezone": 2, 
  "locale": "en_US", 
  "verified": true, 
  "updated_time": "2012-07-16T13:00:04+0000"
}

Pretty similar information like in the first case.

But again – I cannot get the email address. I’ve tried also

print_r($facebook->api('/my_username_or_id?fields=email'));

and the same also on FB developer site, but again without success…

Is there any way to get email address from ID/username?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T07:29:31+00:00Added an answer on June 10, 2026 at 7:29 am

    To get an email address for a user, you need to have a user access token or have them authenticated in an app with the email permission granted.

    This gives you the email for that user only. You can’t get a user’s friend’s email address this way.

    This prevents spammers from harvesting emails from Facebook.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Add picture at facebook event with Graph API I have been trying
Possible Duplicate: 'Like' a page using facebook graph api I want to let users
Possible Duplicate: Facebook online friend I am using the Facebook Graph API and I
Possible Duplicate: How to get friend's birthday list using facebook api? I'm developing an
Possible Duplicate: launch facebook app from other app Im a beginner with facebook api
Possible Duplicate: Check if user is logged in New Facebook API ive implemented facebook
Possible Duplicate: Accessing numerical property in a json object Using the facebook graph api,
Possible Duplicate: launch facebook app from other app I'm looking to see if it
Possible Duplicate: Google plus api for posting on wall like facebook I have checked
Possible Duplicate: What's the shebang/hashbang (#!) in Facebook and new Twitter URLs for? I'm

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.