iOS app expected behavior after the user removes the previously added authorization from the Facebook app? -
i'm posting facebook our unity ios game initializing @ game launch posting message first checking session validity , triggering login if needed.
at first call, authorize game facebook app. trying start process again, go facebook app prefs , delete app authorization.
now when try post again game, post message completion handler has no errors post not appear on user's wall.
what process correct this? there way check game authorized before posting, , ask new authorization if it's not? or user decision final , need reinstall app reset everything?
even though i'm using prime31's facebook plugin unity, i'm interested in ios sdk answer question.
thank you!
you exception, need handle.
- (void)request:(fbrequest *)request didfailwitherror:(nserror *)error{ nslog(@"didfailwitherror : %@",[error description]); nsdictionary* userinfo=[error userinfo]; nsstring *type=[[userinfo valueforkey:@"error"]valueforkey:@"type"]; if([type isequaltostring:@"oauthexception"]){ nslog(@"exception oauth let's take new token"); [facebook authorize:_permissions delegate:self]; } } use delegate function handle exception.
Comments
Post a Comment