I have been struggling with the api schedule for several days and I canβt watch anymore.
In my appdelegate, I placed the following code in the didFinishLaunching file
facebook = [[Facebook alloc] initWithAppId:@"cut-app-id-out"]; NSArray* permissions = [[NSArray arrayWithObjects: @"email", @"user_location", @"user_events", @"user_checkins", @"read_stream", nil] retain]; [facebook authorize:permissions delegate:self]; NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys: @"test message from stackoverflow", @"message", nil]; [facebook requestWithGraphPath:@"/me/feed" andParams:params andDelegate:self];
as you can see I'm trying to get users to log in. I use the following code to put data into the correct dictionary.
- (void)request:(FBRequest*)request didLoad:(id)result { if ([result isKindOfClass:[NSDictionary class]]) { NSLog(@"count : %d ", [result count]); NSArray* resultArray = [result allObjects]; NSLog(@"count : %d ", [result count]); result = [resultArray objectAtIndex:0]; NSLog(@"count : %d ", [result count]); result = [result objectAtIndex:0]; } }
But the didFailWithError: function gives me the following error: The operation cannot be completed. (facebookErrDomain 10000 error.)
I put FBRequestDelegate in my interface file as follows:
@interface TabbedCalculationAppDelegate : NSObject <FBRequestDelegate>{
Is there something I am missing?
source share