0
votes

for Sencha Touch, I have used Facebook JS SDK to allow user to login. It runs pretty well in the browser.

But after building it into PhoneGap project, the Facebook JS SDK won't work in the native iOS app, because running the JS SDK needs a browser.

How can I solve this issue?

1

1 Answers

0
votes

You can either use the InAppBrowser plugin: https://build.phonegap.com/plugins/658 or better yet use the Facebook Connect plugin: https://build.phonegap.com/plugins/257

The Facebook Connect plugin will use the native Facebook application on the users device (if they have it) whilst still using the JavaScript SDK. If the user does not have Facebook installed it will fall back to using the browser.