I have implemented Facebook login and checking the status of my access token in
-(void)fbDidLogin
Now, I have a UITableView where I have a toggle Button as UISwitch which turns on if I have got an access token. The problem is, when I get an access token
-(void)fbDidLogin
method gets called. Here, I'm setting the switch of toggle button on by calling
[self.switch setOn:YES animated:YES];
but its not happening. when I go back and open that page again, its showing the right status but not when I set it in fbDidLogin. Any guesses why this is happening?
For facebook authentication, it goes outside of the application and comes back, maybe thats why its happening? but I'm calling a webservice from fbDidLogin and its working fine.
code is simple
- (void)fbDidLogin {
[self.switch setOn:YES animated:YES];
}