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.
This is the error I get:
Error details: {
error = {
message = "(#200) This API call requires a valid app_id.";
type = OAuthException;
};
}
This is my code:
NSString *postId = [data objectForKey:@"post_id"];
NSString *request = [NSString stringWithFormat:@"%@/likes", postId];
[facebook requestWithGraphPath:request andParams:nil andHttpMethod:@"POST" andDelegate:self];
Does anyone know what I am doing wrong?
You need to include the
app_idin your request.