{"action":"closed","issue":{"url":"https://api.github.com/repos/ccoenraets/OpenFB/issues/54","labels_url":"https://api.github.com/repos/ccoenraets/OpenFB/issues/54/labels{/name}","comments_url":"https://api.github.com/repos/ccoenraets/OpenFB/issues/54/comments","events_url":"https://api.github.com/repos/ccoenraets/OpenFB/issues/54/events","html_url":"https://github.com/ccoenraets/OpenFB/issues/54","id":58193379,"number":54,"title":"How to correctly return the user to a new state in the Emulator?","user":{"login":"kramer65","id":596581,"avatar_url":"https://avatars.githubusercontent.com/u/596581?v=3","gravatar_id":"","url":"https://api.github.com/users/kramer65","html_url":"https://github.com/kramer65","followers_url":"https://api.github.com/users/kramer65/followers","following_url":"https://api.github.com/users/kramer65/following{/other_user}","gists_url":"https://api.github.com/users/kramer65/gists{/gist_id}","starred_url":"https://api.github.com/users/kramer65/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kramer65/subscriptions","organizations_url":"https://api.github.com/users/kramer65/orgs","repos_url":"https://api.github.com/users/kramer65/repos","events_url":"https://api.github.com/users/kramer65/events{/privacy}","received_events_url":"https://api.github.com/users/kramer65/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-19T10:56:59Z","updated_at":"2015-05-26T20:24:53Z","closed_at":"2015-05-26T20:24:53Z","body":"I'm trying to use OpenFB in my Ionic app, and in the browser it now works fine with the following login controller:\r\n```\r\n .controller('LoginCtrl', function($scope, $state){\r\n        $scope.fbLogin = function(){\r\n            openFB.login(\r\n                function(response){\r\n                    if (response.status == 'connected'){\r\n                        console.log('Facebook login succeeded. YEAH!!!');\r\n                        $state.go('tab.chats');\r\n                    } else {\r\n                        console.log('The FB login failed.');\r\n                    }\r\n                },\r\n                {scope: 'email, publish_actions'}\r\n            );\r\n        }\r\n    })\r\n```\r\n\r\nThe problem is that when I try this in the emulator, I get redirected to the FB view and I can login, but after that view I get a screen giving me a safety warning which says (translated from Dutch) something like this:\r\n\r\n> SECURITY WARNING: Please treat the URL above as you would your password and do not share it with anyone. See the Facebook Help Center for more information.\r\n\r\nI don't get this warning in the browser though. Does anybody know why this is and how I can solve it? All tips are welcome!\r\n"}}