iphone - Facebook API not calling delegate(request) methods if device having Facebook App -


in app using facebook api , in device having facebook app(fbapp) also. in app provided button login when click on button opening fbapp login screen , after coming app. here following methods not firing

-(void)request:(fbrequest *)request didreceiveresponse:(nsurlresponse *)response -(void)request:(fbrequest *)request didload:(id)result

this button action

- (ibaction)loginorlogout  { // if user not connected (logged in) connect.  otherwise logout. if (!isconnected) {     [messagetextfield sethidden:no];     [facebook authorize:permissions];     // change lbluser label's message.     **[lbluser settext:@"please wait..."];** //struck here not firing delegate response methods above } else  {     [facebook logout:self];     [messagetextfield sethidden:yes];     [lbluser settext:@"tap on login connect facebook"]; } isconnected = !isconnected; [self setloginbuttonimage]; } 

without fbapp calling delegate methods successfully.how can solve this. 1 can or suggest.

actually when tap on authorize open safari or if there facebook app on device open facebook app otherwise open facebook in safari. if don't want open safari , facebook app in facebook.m change statement everywhere calling no.

[self authorizewithfbappauth:no safariauth:no]; 

Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -