What is the easiest way to get friends' birthday? Relationship Status?
Using FQL, we can get the status of relations with the birthdays and friends of the user in one query like this:
SELECT uid, name, birthday_date, relationship_status FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1=me())
which can be implemented on Android using the Android Android SDK, for example:
String query = "SELECT uid, name, birthday_date, relationship_status FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1=me())" Bundle params = new Bundle(); params.putString("method", "fql.query"); params.putString("query", query); mAsyncFacebookRunner.request(null, params, new FQLRequestListener())
where the FQLRequestListener extends the RequestListener.
The JSON response will look like this:
{ "data": [ { "uid": 1234567890, "name": "John Smith", "birthday_date": "06/16", "relationship_status": "Married" }, { "uid": etc...
You need
friends_birthday
Resolution
source share