Skip to content

Instantly share code, notes, and snippets.

@zxcvbnm4709
Created January 26, 2013 05:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zxcvbnm4709/4640336 to your computer and use it in GitHub Desktop.
Save zxcvbnm4709/4640336 to your computer and use it in GitHub Desktop.
#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).
}
@Favorwilliams
Copy link

My Pleasure to write you,
My name is Favor Williams,
My email address is
( Favor24@live.com)
Am interested to know
more about you,
Contact me for my
photo and other
important issue via,

Favor24@live.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment