views:

52

answers:

1

I am implementing FBConnect into my iPhone application and it works perfectly on simulator. When I try to run it on device, the FBLoginDialog box shows up for a couple of seconds (with a spinner) then closes immediately. When I trace the fail I found that it was immediately failing with an error:

Error Domain=kCFErrorDomainCFNetwork Code=-1202 "The certificate for this server is invalid. You might be connecting to a server that is pretending to be \u201clogin.facebook.com\u201d which could put your confidential information at risk."

While investigating on Google I found this may have something to do with SSL certificates but I am unaware on how to resolve it. Any help would be much appreciated.

It should also be known that I have tried running the FBConnect demo apps on my device and they produce the same result.