简体   繁体   中英

facebook api python get birthday

I am using the facebook API in python to extract some information about users. I need to get users birthdays but I am only able to get my friend(s) birthday(s). Is there a way to get anyone's bday or is that a privacy setting?

my code:

import facebook

token = "CAAErZAZAHDByABADxr766............................."

graph = facebook.GraphAPI(token)
profile = graph.get_object("Any_user")
print profile['birthday']

I'm not familiar with the Facebook API, but I'd assume not, unless it's public. Privacy settings don't (or at least shouldn't) go away because you're using an API instead of their browser interface.

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