Created
January 26, 2013 05:12
-
-
Save zxcvbnm4709/4640336 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import "HFAppDelegate+FBAuthentication.h" | |
- (void)viewDidLoad { | |
[super viewDidLoad]; | |
[[NSNotificationCenter defaultCenter] addObserver:self | |
selector:@selector(sessionStateChanged:) | |
name:HFSessionStateChangedNotification | |
object:nil]; | |
} | |
- (void)viewDidUnload { | |
[super viewDidUnload]; | |
[[NSNotificationCenter defaultCenter] removeObserver:self name:HFSessionStateChangedNotification object:nil]; | |
} | |
#pragma mark - Helper Methods | |
- (void)sessionStateChanged:(NSNotification*)notification { | |
// A more complex app might check the state to see what the appropriate course of | |
// action is, but our needs are simple, so just make sure our idea of the session is | |
// up to date and repopulate the user's name and picture (which will fail if the session | |
// has become invalid). | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
My Pleasure to write you,
My name is Favor Williams,
My email address is
( [email protected])
Am interested to know
more about you,
Contact me for my
photo and other
important issue via,
[email protected]