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

前端 未结 3 1550
一生所求
一生所求 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 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.

提交回复
热议问题