I am developing an iPhone application that deals with Facebook. I am using the latest facebook-facebook-ios-sdk-cf1c2c3 SDK (SDK 2.0) to allow a user to login to a Facebook account using OAuth.
The user can log into the iPod Touch (4.3.1) without any problems. But on iPhone 3GS, I get the following error:
Error Domain=NSURLErrorDomain Code=-1202 "The certificate for this server is invalid. You might be connecting to a server that is pretending to be \u201cm.facebook.com\u201d which could put your confidential information at risk." UserInfo=0x1b8350 {NSErrorFailingURLStringKey=https:
I extracted the URL from the FBLoginDailog and tried loading it in iPhone -> Safari. It redirects to the following URL and allows the user to login:
http:
Additionally, I have the following workaround from the link:
https://github.com/facebook/facebook-ios-sdk/issues/139
But the link also mentions not using it for the App Store executable. But I also get a problem for the application executable.
How to solve this?
Thanks and Regards, Deepa
source
share