I would like to be able to like a Facebook status using the Graph API. I have successfully written a status update and a comment to a status update so it all seems to be perfectly set up. Still, I get an error when trying to like a status update.

Apparently I have to send a dictionary containing the application id as value to key app_id. [NSMutableDictionary dictionaryWithObjectsAndKeys:@"1234567890", @"app_id", nil] I thought that wouldn't be necessary as the app id is set when initializing facebook. Sorry, it was a stupid mistake. I'm not sure what the routine is here. Should you post an answer so that I can accept it?
–
simonbsAug 15 '11 at 14:31

2 Answers
2

I had this problem today and the problem wasn't that my app_id was missing. I tried a bunch of different things without any luck then finally resolved the problem by revoking access for the iOS app in my general settings and then allowing them again.

I opened the app once in between this too, so I can't confirm whether flipping the switch on/off is enough.

I think the problem can arise when users upgrade their OS and username/password has to be reentered for FB/Twitter accounts. For whatever it messes with apps' individual access permissions.