I’m learning to integrate Facebook into my next iOS app, and currently using their own sample project Hackbook, which is a great demonstration of the different API calls, requests, permissions and such.
I am able to get the extended permission to get friends_birthday, and verified using my Facebook account that the app has permission. I am also able to pull MY birthday using Hackbooks apiGraphMe method, and display it under Basic Information, however, I cannot seem to modify Hackbooks getUserFriends method to display their birthdays like I can for myself.
Has anyone modified Hackbook before learning the API and pulled a friends birthday? If not I hope someone has experience with it. Mind you I’d like to see it done with the Hackbook project format as that’s the tool I’m learning on.
Thanks in advance, I’ll be sure to accept fast!
- (IBAction) getPublicInfo: (id)sender {
NSMutableDictionary * params = [NSMutableDictionary
dictionaryWithObjectsAndKeys:
@"SELECT uid,name FROM user WHERE uid=4", @"query",
nil];
[_facebook requestWithMethodName: @"fql.query"
andParams: params
andHttpMethod: @"POST"
andDelegate: self];
Here’s the FQL query :
Don’t forget the permission
friends_birthday!