ios - FBRequestConnection no respond -


i'm making "fbrequestconnection" friends play game...

when update sdk of facebook last one, stop working. because working before.

i have no respond, no success, no error. ideas?

nsstring *query = @"select uid user uid in (select uid2 friend uid1 = me()) , is_app_user = 1";         // set query parameter         nsdictionary *queryparam = [nsdictionary dictionarywithobjectsandkeys:query, @"q", nil];         // make api request uses fql         [fbrequestconnection startwithgraphpath:@"/fql"                                      parameters:queryparam                                      httpmethod:@"get"                               completionhandler:^(fbrequestconnection *connection,                                                   id result,                                                   nserror *error) {                                   if (error) {                                       [self debug:[nsstring stringwithformat:@"error: %@", [error localizeddescription]]];                                   } else {                                       [self debug:[nsstring stringwithformat:@"result: %@", [result objectforkey:@"data"]]];                                   }                               }];       -(void)fblogin {     if (!_session.isopen) {         // create fresh session object         _session = [[fbsession alloc] init];          // if don't have cached token, call open here cause ux login         // occur; don't want happen unless user clicks login button, ,         // check here make sure have token before calling open         if (_session.state == fbsessionstatecreatedtokenloaded) {             // though had cached token, need login make session usable             [_session openwithcompletionhandler:^(fbsession *session,                                                              fbsessionstate status,                                                              nserror *error) {                 // recurse here, in order update buttons , labels                 [[nsnotificationcenter defaultcenter] postnotificationname:@"fbconnected" object:nil];             }];         }          [self populateuserdetails];     } } 

thanks

open session with:

 [fbsession.activesession openwithcompletionhandler:^(fbsession * session, fbsessionstate state, nserror * error){         if (!error){          }     }]; 

Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -