
Untitled
By: a guest on
May 2nd, 2012 | syntax:
None | size: 0.95 KB | hits: 19 | expires: Never
Set orientation on fbgraph api login page in ipad?
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[self login];
[self.window addSubview:viewController.view];
[self.window makeKeyAndVisible];
return YES;
}
-(void) login
{
/*Facebook Application ID*/
NSString *client_id = @"226801547398501";
//alloc and initalize our FbGraph instance
self.fbGraph = [[FbGraph alloc] initWithFbClientID:client_id];
//begin the authentication process.....
[fbGraph authenticateUserWithCallbackObject:self andSelector:@selector(fbGraphCallback:)
andExtendedPermissions:@"user_photos,user_videos,publish_stream,offline_access,user_checkins,friends_checkins"];
}
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return (interfaceOrientation == UIInterfaceOrientationLandscapeRight);
}