ccoenraets / OpenFB

Micro-library that lets you integrate browser and Cordova apps with Facebook with no plugin or SDK dependency.
MIT License
505 stars 231 forks source link

Can't find variable: deferredLogin #60

Closed superandrew closed 9 years ago

superandrew commented 9 years ago

Hi, I am using openfb with bower in ionic. I don't understand why I have this error.

5     332137   log      exit and remove listeners
6     332137   log      Error in Success callbackId: InAppBrowser1724574440 : ReferenceError: Can't find variable: deferredLogin

it seems to be a common problem: https://github.com/ccoenraets/OpenFB/issues?utf8=%E2%9C%93&q=deferredLogin+

I've applied the fix

117 if (loginCallback && !loginProcessed) loginCallback({status: 'user_cancelled'});

from this pullRequest: https://github.com/soloidx/OpenFB/commit/a4ea90d644fcdc290ed082e9a6c58302168fbe1d But I'd like to have the correct file pushed with bower instead of manually patching OpenFB. Is there anyone who can accept the pull request?

superandrew commented 9 years ago

I guess this is causing saving token. I think I have this problem only on devices/simulator. Any idea about that?