In my app am using Facebook api and in my device am having Facebook app(FBApp) also. In my app i provided a button to login when we click on button it is opening FBApp login screen and after that it is coming to my app. Here the following methods are not firing
-(void)request:(FBRequest *)request didReceiveResponse:(NSURLResponse *)response -(void)request:(FBRequest *)request didLoad:(id)result
This is the button action
- (IBAction)LoginOrLogout
{
// If the user is not connected (logged in) then connect. Otherwise logout.
if (!isConnected)
{
[messageTextField setHidden:NO];
[facebook authorize:permissions];
// Change the lblUser label's message.
**[lblUser setText:@"Please wait..."];** //struck here only not firing delegate response methods above
}
else
{
[facebook logout:self];
[messageTextField setHidden:YES];
[lblUser setText:@"Tap on the Login to connect to Facebook"];
}
isConnected = !isConnected;
[self setLoginButtonImage];
}
Without FBApp it is calling delegate methods successfully.How can we solve this. Any one can help or suggest.