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

Login undefined #85

Open
ezequieltejada opened this issue Nov 10, 2014 · 0 comments
Open

Login undefined #85

ezequieltejada opened this issue Nov 10, 2014 · 0 comments

Comments

@ezequieltejada
Copy link

Hello, for some reason when I call "Facebook.login()"

I get this error message:

TypeError: undefined is not a function
at Scope.NgFacebook.login (http://localhost:9000/bower_components/angular-facebook/lib/angular-facebook.js:311:26)
at $parseFunctionCall (http://localhost:9000/bower_components/angular/angular.js:12158:18)
at http://localhost:9000/bower_components/angular-touch/angular-touch.js:472:9
at Scope.$eval (http://localhost:9000/bower_components/angular/angular.js:14200:28)
at Scope.$apply (http://localhost:9000/bower_components/angular/angular.js:14298:23)
at Scope.$delegate.proto.$apply (:855:30)
at HTMLAnchorElement. (http://localhost:9000/bower_components/angular-touch/angular-touch.js:471:13)
at HTMLAnchorElement.jQuery.event.dispatch (http://localhost:9000/bower_components/jquery/dist/jquery.js:4409:9)
at HTMLAnchorElement.elemData.handle (http://localhost:9000/bower_components/jquery/dist/jquery.js:4095:28) angular.js:11383(anonymous function) angular.js:11383(anonymous function) angular.js:8459Scope.$apply angular.js:14300$delegate.proto.$apply VM224155:855(anonymous function) angular-touch.js:471jQuery.event.dispatch jquery.js:4409elemData.handle

I went to the code and find out on line 311 (on angular-facebook.js): "if (this.isReady()) {" so if I replace it with "if (flags.ready) {"

it will work perfectly.

Maybe I'm breaking something, but in case I don't it will be great if we can change this.

Thanks guys!

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

1 participant