Facebook iOS SDK DemoApp shows "Sorry, an error has occurred" even after App ID configuration
I downloaded the Facebook iOS SDK from https://github.com/facebook/facebook-ios-sdk/. I opened th开发者_运维技巧e DemoApp, and I've set my app id in the code and in the application's plist for the url callback. When I run it on both simulator and device, as soon I hit the Login button, it opens up a Safari window displaying "Sorry, an error has occurred." on the Facebook page. My system clock is accurate (this was someone else's issue).
Am I missing something?
Thanks!
Fixed it. I was passing in my app's API Key, not the App ID!
精彩评论