I implemented Facebook login and checked the status of my access token in
-(void)fbDidLogin
Now I have a UITableView
, where I have a Button
switch like UISwitch
that turns on if I have an access token. The problem is that when I get an access token
-(void)fbDidLogin
Method called
. Here I set the switch button switch, causing
[self.switch setOn:YES animated:YES];
but it does not happen. when I return and open this page again, it will show the correct status, but not when I set it to fbDidLogin
. Any guesses why this is happening?
For facebook authentication, it goes beyond the application and comes back, which is probably why this is happening? but I am calling a web service from fbDidLogin
and its health.
the code is simple
- (void)fbDidLogin { [self.switch setOn:YES animated:YES]; }
source share