ios - iPhone Facebook app: Finding out where the error is? -
so added facebook previous app working. , included code button press upload/post picture selected facebook -- nothing happened.
are there resources learning syntax ios facebook apps? because i'm lost. also, tell me why seemingly simple code doesn't work? because pretty copied demo app example.
- (ibaction) sendpressed:(uibutton *)sender { for(uiviewcontroller *controller in self.tabbarcontroller.viewcontrollers) { if([controller iskindofclass:[firstviewcontroller class]]) { firstviewcontroller *firstviewcontroller = (firstviewcontroller *)controller; [firstviewcontroller reallabel]; } } facebook *facebook = [[facebook alloc] initwithappid:@"198223696897308"]; nsmutabledictionary *params = [nsmutabledictionary dictionarywithobjectsandkeys: image, @"picture", nil]; [facebook requestwithgraphpath:@"me/photos" andparams:params andhttpmethod:@"post" anddelegate:self]; self.tabbarcontroller.selectedindex = 0;//switch on first view see if worked }
the first thing i'd verify method being called setting breakpoint or outputting log statement.
the second thing i'd @ api documentation see if of methods i'm calling provide errors in way. do, check say.
the third thing i'd set device use proxy (e.g. charles) see if requests being sent out on wire.
Comments
Post a Comment