Skip to content

Instantly share code, notes, and snippets.

@patelrohan
Created February 10, 2012 12:02
Show Gist options
  • Save patelrohan/1789075 to your computer and use it in GitHub Desktop.
Save patelrohan/1789075 to your computer and use it in GitHub Desktop.
Login using facebook account
- (IBAction)loginButtonPressed:(id)sender {
NSString *client_id = @"142759389130183";
//alloc and initalize our FbGraph instance
self.fbGraph = [[FbGraph alloc] initWithFbClientID:client_id];
//begin the authentication process.....
[fbGraph authenticateUserWithCallbackObject:self andSelector:@selector(fbGraphCallback:)
andExtendedPermissions:@"read_stream,user_photos,user_videos,publish_stream,offline_access,user_checkins,friends_checkins"];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment