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 callback doesn't work. #111

Open
ghost opened this issue Aug 6, 2016 · 1 comment
Open

Login callback doesn't work. #111

ghost opened this issue Aug 6, 2016 · 1 comment

Comments

@ghost
Copy link

ghost commented Aug 6, 2016

openFB.init({appId: 'my_app_id'});
openFB.login(
        function(response) {
            $scope.text = JSON.stringify(response);
        }, {scope: 'user_friends,user_likes,user_tagged_places,user_events'});

After login my app returns to the page but it doesn't execute callback.
Please, help me!

@ahardworker
Copy link

ahardworker commented Sep 3, 2016

Hey! The problem is because of the fact that you injected in your body a Controller. Which messes up the scope.<body ng-app="starter" ng-controller="IBreakEverything"> If you have this, its probably what is killing your vibe. You either need to inject the controller via the routes, or else edit OpenFB.js in a way that it checks in the right scope.

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