views:

153

answers:

2

I have recently wired up my application to use Facebook iOS SDK (http://github.com/facebook/facebook-ios-sdk), the integration works fine but the pages are really slow. It takes really a long time to load the Login screen. Login action takes more than 10-60 seconds.

I didn't have this problem with FBConnect. Am I missing something? Is there a way to optimize this....

Update

I did scan the activity through HTTP Scoop over Wifi which revealed something interesting, there are some .js and .css that are taking a lot of time in the new Facebook iOS SDK (login.php, ar7ed2ft.css, 4wj242ne.js, abl6sgyy.js,) where as the old one was zippy, Any ideas on how to let Facebook know about it?

New FB iOS SDK

New FB iOS SDK Activity Monitor

Old FB Connect

Old FB Connect

A: 

Try using this one http://github.com/facebook/facebook-iphone-sdk

ZaldzBugz
This is the older version I moved away from. I want to use Facebook Graph API
Santthosh
+1  A: 

Implement OAuth 2.0 yourself. It just uses HTTPS, extremely easy to implement. In my experience, it was easier than using their confusing, document-less SDK. Important is getting authentication token. You can access all their graphs with it.

If you implement it yourself, you can choose login screen dialog design as one of:

  • touch
  • WAP

WAP is uglier because it's for older phones, but if you really need it, it may help you.

Eonil