Facebook

Facebook 取得資訊(圖形API測試工具)

1.先登入FB

API測試網址

2.取得資訊(每更改一次權限就要取得新的Token)

權限

Token

確認授權權限

提交

3.資訊與權限的對比

取得Email email權限
me?fields=id,name,email

https://graph.facebook.com/v6.0/me?fields=id%2Cemail&access_token={access-token}

取得年齡範圍 user_age_range權限
me?fields=age_range

https://graph.facebook.com/v6.0/me?fields=id%2Cage_range&access_token={access-token}

取得生日 user_birthday權限
me?fields=birthday

https://graph.facebook.com/v6.0/me?fields=id%2Cbirthday&access_token={access-token}

取得性別 user_gender權限
me?fields=gender

https://graph.facebook.com/v6.0/me?fields=id%2Cgender&access_token={access-token}

取得家鄉 user_hometown權限
me?fields=hometown

https://graph.facebook.com/v6.0/me?fields=id%2Chometown&access_token={access-token}

取得按讚粉絲專頁 user_likes權限
me?fields=likes(未分類)

https://graph.facebook.com/v6.0/me?fields=id%2Clikes&access_token={access-token}

me?fields=television(電視類)

https://graph.facebook.com/v6.0/me?fields=id%2Ctelevision&access_token={access-token}

me?fields=music(音樂類)

https://graph.facebook.com/v6.0/me?fields=id%2Cmusic&access_token={access-token}

me?fields=movies(電影類)

https://graph.facebook.com/v6.0/me?fields=id%2Cmovies&access_token={access-token}

取得動態貼文 user_posts權限
me?fields=posts

https://graph.facebook.com/v6.0/me?fields=id%2Cposts&access_token={access-token}

發表迴響