Babul
Babul

Reputation: 1268

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

Upvotes: 6

Views: 386

Answers (2)

Divya
Divya

Reputation: 818

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

Upvotes: 1

Gonzalo
Gonzalo

Reputation: 81

It's not related to Facebook. It's related to UIStatusBar and his orientation method.

Please provide your source related to this issue.

Upvotes: 0

Related Questions