Facebook API, how to get relationship status of friends(single, married, etc…)?

前端 未结 3 1549
一生所求
一生所求 2021-01-21 06:06

could somebody help me with Facebook API, how to get relationship status of friends(single, married, etc...)?

Thanks for any help.

相关标签:
3条回答
  • 2021-01-21 06:57

    Try this FQL in the Graph explorer tool

    fql?q=SELECT uid, name, relationship_status FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1=me())

    0 讨论(0)
  • 2021-01-21 07:00

    You just need to get an access token with user_relationships, call https://graph.facebook.com/YOURFRIEND-ID and check "relationship_status" in the returned JSON string. Just have in mind that if your friend didn't filled his relationship data into his profile, there will be no "relationship_status" at the returned user info.

    0 讨论(0)
  • 2021-01-21 07:06

    You will no longer be allowed to get friends information in v2.0.

    0 讨论(0)
提交回复
热议问题