Created
February 10, 2012 12:02
-
-
Save patelrohan/1789075 to your computer and use it in GitHub Desktop.
Login using facebook account
This file contains hidden or 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
- (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