简体   繁体   中英

Facebook SDK not running on iPhone Simulator, only on device

I have a strange issue trying to run the Facebook iOS SDK DemoApp (from facebook website).

On the device the app is working perfectly, but on the simulator a grey screen appears after login and permission requests. It doesn't even load fbDidLogin() function.

Anybody else having this problem?

Fixed. In my case, I was using the same APP_ID in several XCode projects. I deleted the apps in iPhone Simulator, rebuilt the Facebook Demo App and worked. I think it was confusing for which project to log in or something.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM