简体   繁体   中英

What format does Facebook api return as “birthday”

According to Facebook docs requesting birthday data is done by requesting user_birthday permission set and then the birthday string is stored under birthday in the return array.

What format does it return in, and does the format vary according to users setting?

Formats that I would predict

1990-05-22 // standard
05.22.1990 // USA reverse format
22.05 // User hid birth year
1990 // Getting only birth year without a date
NULL // User hid entire birthday

For me right now is important to determine whether Facebook gives one standard format of birthday value or its format depends on users birthday settings?

The birthday returned by the facebook is a string of the format: MM/DD/YYYY .

Reference .

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