請參考 https://developers.facebook.com/docs/graph-api/reference/user 定義最準。
而一般問卷常用的年紀,在 Facebook 只有 13/18/21 這三種數值可用,要再更仔細去請用 FB ads 去發了;而教育資訊跟地區資訊也得額外要求額外的權限 user_education_history 跟 user_location 才能得到
最後,在用 graph api 來取得這些資訊吧:
/me?fields=id,name,email,education,gender,location,age_range
{
"id": "##",
"name": "Yuan-Yi Chang",
"email": "@gmail.com",
"education": [
{
...
"type": "High School",
...
},
{
...
"type": "College",
...
},
{
...
"type": "Graduate School",
...
}
],
"gender": "male",
"location": {
"id": "110765362279102",
"name": "Taipei, Taiwan"
},
"age_range": {
"min": 21
}
}
預計先這般儲存吧:
age_range => 13/18/21
gender => None/Male/Female/Unisex
education => None/HighSchool/College/GraduateSchool
沒有留言:
張貼留言