Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Log in with facebook in ios6 unrecognized selector sent to instance"

I am getting the following error when i am working with facebook Login

Yes, It is a basic mistake "unrecognized selector sent to instance" But i did not get where the mistake is

[UIStatusBar orientation]: unrecognized selector sent to instance 0xa9a9c00
2012-11-23 11:15:46.854 Tattoo Later[1265:1cd03] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIStatusBar orientation]: unrecognized selector sent to instance 0xa9a9c00'

In this Method

- (void)loginToFacebook:(id) loginDelegate
{
fbServiceRequestingobj = loginDelegate;
 NSArray* permissions = [[NSArray alloc] initWithObjects:
                            @"publish_stream",@"user_birthday",@"read_stream",@"user_about_me",@"offline_access",@"email",@"read_mailbox",@"user_about_me",nil];
 [facebook authorize:permissions delegate:self];
}

App Crashes in this line [facebook authorize:permissions delegate:self];

In My project i intergrated "GPUImage" I am working on ios6

Thanks in advance

like image 715
Babul Avatar asked Nov 23 '12 07:11

Babul


1 Answers

In ios6 there is no method called [facebook authorise: delegate:] ...its just [Facebook authorise: ]

like image 126
Divya Avatar answered Sep 30 '22 19:09

Divya