I am running the demo application that is supplied with the facebook-ios-sdk. The application starts in the emulator, with a LogIn button. I click 开发者_开发问答the button which then launches safari to grant access to the application. I log in with my fb creds and allow the application. I am the administrator for the application and I have verified I put in the right app key.
After I allow access, it says "Safari cannot open the page because the address in invalid"...this is the url it's trying to go to: http://www.facebook.com/connect/uiserver.php...
So am I missing something because the breakpoint for (void)fbDidLogin
never gets hit...
I figured out the problem... I didnt bind my application to a URL scheme corresponding to my Facebook application ID. Once I did this the callbacks were working properly.
This is the problem of your registration. I think you put the wrong thing in the website field
its detailed in the Facebook SDK README file -
https://github.com/facebook/facebook-ios-sdk/blob/master/README.mdown
scroll down to the Authentication and Authorization section, it walks you though it.
Don't want to post it here, incase it ever changes
-Jonathan
精彩评论