I am pretty new to objective-c.
I am working on a Video App. I am trying to connect my App with Facebook.
I am trying to make the “Single Sign On” to work. The flow seems to be working fine:
- Facebook App is loaded.
- I press “Allow” or “Don’t Allow” and my App is being put to foreground.
But, for some reason I cannot make the “handleOpenURL” to work. I followed Facebook instructions and added this method to my class: AVCamViewController (this class is taken from the AVFoundation example App):
- (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url {
NSLog(@"Facebook handleOpenURL");
return [facebook handleOpenURL:url];
}
The method is never called.
I guess I am doing something wrong related with the App delegate.
The problem, I don’t know exactly what is App delegate and how can I access it?
Can anyone help me to properly use the “handleOpenURL” in my App?
Thanks,
Guy
The
handleOpenURL:method is part of the UIApplicationDelegate protocol. You need to implement this method in your application delegate.