I am using the latest Facebook SDK for iOS and Graph API. Works Great.
I'm trying to 'Like' status updates, doing the following:
NSManagedObject *managedObject = [self.fetchedResultsController objectAtIndexPath:indexPath];
NSString *messageID = (NSString*)[managedObject valueForKey:@"message_id"];
NSLog(@"Like: %@", [NSString stringWithFormat:@"%@/likes", messageID]);
[facebook requestWithGraphPath:[NSString stringWithFormat:@"%@/likes", messageID] andParams:nil andHttpMethod:@"POST" andDelegate:self];
However this returns an error from Facebook:
facebookErrDomain error 10000.
Anyone know why this is?
The Facebook SDK enables: Facebook Login - Authenticate people with their Facebook credentials. Share and Send dialogs - Enable sharing content from your app to Facebook. App Events - Log events in your application.
API Version Deprecations: As part of Facebook's Graph API and Marketing API, please note the upcoming deprecations: August 3, 2021: Graph API v3. 3 will be deprecated and removed from the platform. August 25, 2021 Marketing API v9.
Figured it out. You cannot pass nil to the parameters. So I created an empty NSMutableDictionary
, and passed that. Worked fine. (By the way: it’s not possible to like a page this way.)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With