Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FBConnect does not work on device #47

Closed
xtremedev opened this issue Sep 10, 2010 · 6 comments
Closed

FBConnect does not work on device #47

xtremedev opened this issue Sep 10, 2010 · 6 comments

Comments

@xtremedev
Copy link

I am implementing FBConnect into my 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.

@xtremedev
Copy link
Author

It should also be known that I have ran the demo applications on my device and the result on the same way.

@yujuan
Copy link

yujuan commented Sep 10, 2010

yeah, this is a ssl issue. our server is using wildcard certificate. Previously it works fine with apple's webview. Which version of ios you are using?

@aduhz
Copy link

aduhz commented Sep 11, 2010

I got the same issue. It works on my simulator, my iPhone 3Gs (os 3.1.2(7D11)), but gives this -1202 error on my iPod touch, 2nd gen, (same os, 3.1.2(7D11)).

@xtremedev
Copy link
Author

I am using iOS 4.0 but I'm currently upgrading to 4.1

@yujuan
Copy link

yujuan commented Sep 13, 2010

it looks a similiar problem with http://github.com/facebook/facebook-ios-sdk/issues/issue/22
Can you first check the tcpdump also? if it is not issue on your side, we need get a real certificate for our server.

@cancelself
Copy link

Could you check http://github.com/facebook/facebook-ios-sdk/issues/issue/22? If this isn't addressed, please reopen.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants