简体   繁体   中英

Facebook Graph API test user missing email

For my Android unit tests, I use the Facebook Graph API to create test-users and then I log in Facebook with email and password.

Since 2021-02-26 , I don't get the test-user's email when I create one with the Facebook API. For example:

POST APP_ID/accounts/test-users

Returns:

{
  "id": "USER_ID",
  "access_token": "SUPER_LONG_ACCESS_TOKEN",
  "login_url": "LOGIN_URL",
  "password": "USER_PASSWORD"
}

So the email is missing now, when I check my user with:

GET /USER_ID (and user's access token)

Returns:

{
  "name": "FIRSTNAME LASTNAME",
  "id": "USER_ID"
}

I checked and my user's have the "email" permission, I also tried my get with "fields=email" but it never returns the email anymore.

So how to get test-user's email from graph API,as before?

It appear that it is working now (April 2021), the facebook account is created with an email so my tests are running correctly now.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM