{"action":"closed","issue":{"url":"https://api.github.com/repos/Wizcorp/phonegap-facebook-plugin/issues/984","labels_url":"https://api.github.com/repos/Wizcorp/phonegap-facebook-plugin/issues/984/labels{/name}","comments_url":"https://api.github.com/repos/Wizcorp/phonegap-facebook-plugin/issues/984/comments","events_url":"https://api.github.com/repos/Wizcorp/phonegap-facebook-plugin/issues/984/events","html_url":"https://github.com/Wizcorp/phonegap-facebook-plugin/issues/984","id":69089135,"number":984,"title":"using websql for storage thows errors","user":{"login":"gasperz","id":3580537,"avatar_url":"https://avatars.githubusercontent.com/u/3580537?v=3","gravatar_id":"","url":"https://api.github.com/users/gasperz","html_url":"https://github.com/gasperz","followers_url":"https://api.github.com/users/gasperz/followers","following_url":"https://api.github.com/users/gasperz/following{/other_user}","gists_url":"https://api.github.com/users/gasperz/gists{/gist_id}","starred_url":"https://api.github.com/users/gasperz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gasperz/subscriptions","organizations_url":"https://api.github.com/users/gasperz/orgs","repos_url":"https://api.github.com/users/gasperz/repos","events_url":"https://api.github.com/users/gasperz/events{/privacy}","received_events_url":"https://api.github.com/users/gasperz/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-17T07:48:45Z","updated_at":"2015-05-17T15:47:55Z","closed_at":"2015-05-17T15:47:55Z","body":"Hi,\r\nI am using sencha touch (2.4) with cordova build on Android simulator. So no facebook app is installed. I would like to store accessToken in websql storage (on success callback). but i receive console error:\r\nsuccess from console:  \r\n```javascript\r\nObject {authResponse: Object, status: \"connected\"}\r\nauthResponse: Object\r\naccessToken: \"CAAKhWeZAhEOwBAHaVOVbkWqgIRRprL5M34dDKIrROU1fKqhav1mfVlysk6ZBDkcbZC9vF6ObZCja5yAUs82F2ciWIflUY9t27FhBx2S6mSUOrDIaeZA3ZBLZBZB3CIIeHKZBdsKB17a1jZAP8QY3CaTMslYx3oW39RZBFPWmZC7JyoVucyEinduyZCngPdlVjnfIm2haOwGBvqkWuL8EXIAIWn7zI\"\r\nexpiresIn: \"5146805\"\r\nsession_key: true\r\nsig: \"...\"\r\nuserID: \"291809714353608\"\r\n__proto__: Object\r\nstatus: \"connected\"\r\n__proto__: Object\r\n app.js:1\r\nError in Success callbackId: FacebookConnectPlugin578981346 : SecurityError: Failed to execute 'openDatabase' on 'Window': Access to the WebDatabase API is denied in this context. cordova.js:305\r\nprocessMessage failed: Error: SecurityError: Failed to execute 'openDatabase' on 'Window': Access to the WebDatabase API is denied in this context. cordova.js:1075\r\nprocessMessage failed: Stack: Error: Failed to execute 'openDatabase' on 'Window': Access to the WebDatabase API is denied in this context.\r\n    at Ext.cmd.derive.getDatabaseObject (file:///android_asset/www/app.js:1:423684)\r\n    at Ext.cmd.derive.create (file:///android_asset/www/app.js:1:416859)\r\n    at Ext.cmd.derive.runOperation (file:///android_asset/www/app.js:1:359772)\r\n    at Ext.cmd.derive.runNextOperation (file:///android_asset/www/app.js:1:359270)\r\n    at Ext.cmd.derive.start (file:///android_asset/www/app.js:1:359217)\r\n    at Ext.cmd.derive.batch (file:///android_asset/www/app.js:1:361718)\r\n    at Ext.cmd.derive.sync (file:///android_asset/www/app.js:1:411384)\r\n    at c (file:///android_asset/www/app.js:1:502078)\r\n    at file:///android_asset/www/app.js:1:501784\r\n    at Object.cordova.callbackFromNative (file:///android_asset/www/cordova.js:286:58) cordova.js:1076\r\nprocessMessage failed: Message: S01 FacebookConnectPlugin578981346 {\"authResponse\":{\"userID\":\"291809714353608\",\"accessToken\":\"CAAKhWeZAhEOwBAHaVOVbkWqgIRRprL5M34dDKIrROU1fKqhav1mfVlysk6ZBDkcbZC9vF6ObZCja5yAUs82F2ciWIflUY9t27FhBx2S6mSUOrDIaeZA3ZBLZBZB3CIIeHKZBdsKB17a1jZAP8QY3CaTMslYx3oW39RZBFPWmZC7JyoVucyEinduyZCngPdlVjnfIm2haOwGBvqkWuL8EXIAIWn7zI\",\"session_key\":true,\"expiresIn\":\"5146805\",\"sig\":\"...\"},\"status\":\"connected\"} \r\n```\r\n\r\n\r\nI am using this code:\r\n```javascript\r\nfacebookConnectPlugin.login([\"email\"], function(success){\r\n    console.log('success from console: ', success);\r\n    if (success.status === 'connected') {\r\n        saveSetting(success.authResponse.accessToken);\r\n//         alert('successfuly logged');\r\n        Ext.Msg.alert('Facebook', 'You are logged in.', Ext.emptyFn);\r\n    }\r\n}, function(failure) {\r\n    console.log('Failed from console:', failure);\r\n//     alert('failure with logging');\r\n    Ext.Msg.alert('Facebook', \"Sign in to facebook failed: \" + JSON.stringify(failure));\r\n});\r\n\r\n\r\nfunction saveSetting(token) {\r\n    var store = Ext.StoreManager.lookup('SFacebook');\r\n    store.add({token: token});\r\n    store.sync();\r\n}\r\n```\r\n\r\nWhat is also strange to me is that \"console.log('success from console: ', success);\" is executed immediately and not after I enter login credentials. Why is that?\r\n\r\nI forgot to mention. This same app works on iOs simulator and devices."}}