{"action":"created","issue":{"url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/755","repository_url":"https://api.github.com/repos/ParsePlatform/parse-server","labels_url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/755/labels{/name}","comments_url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/755/comments","events_url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/755/events","html_url":"https://github.com/ParsePlatform/parse-server/issues/755","id":137773978,"number":755,"title":"authData:facebook vs _auth_data_facebook?","user":{"login":"michaelbina","id":528845,"avatar_url":"https://avatars.githubusercontent.com/u/528845?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelbina","html_url":"https://github.com/michaelbina","followers_url":"https://api.github.com/users/michaelbina/followers","following_url":"https://api.github.com/users/michaelbina/following{/other_user}","gists_url":"https://api.github.com/users/michaelbina/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelbina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelbina/subscriptions","organizations_url":"https://api.github.com/users/michaelbina/orgs","repos_url":"https://api.github.com/users/michaelbina/repos","events_url":"https://api.github.com/users/michaelbina/events{/privacy}","received_events_url":"https://api.github.com/users/michaelbina/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2016-03-02T05:01:38Z","updated_at":"2016-03-07T16:19:22Z","closed_at":null,"body":"Before migrating to parse-server on heroku, all of the Facebook auth data was stored in the authData field for a User object like so:\r\n\r\n```\r\n    \"authData\": {\r\n        \"facebook\":  {\r\n            \"id\": \"10104620262907903\",\r\n            \"access_token\": \"...\",\r\n            \"expiration_date\": \"4001-01-01T00:00:00.000Z\"\r\n        },\r\n    }\r\n```\r\n\r\nAfter migrating, I am seeing the field _auth_data_facebook like so:\r\n\r\n```\r\n    \"_auth_data_facebook\": {\r\n        \"id\": \"10104620262907903\",\r\n        \"access_token\": \"...\",\r\n        \"expiration_date\": \"4001-01-01T00:00:00.000Z\"\r\n    },\r\n```\r\n\r\nFirst, why was this changed?\r\n\r\nSecond, I am having problems accessing the _auth_data_facebook from Parse Cloud.   \r\n\r\nA search for a user in parse cloud, returns the user object without the _auth_data_facebook field and with the facebook field in authData set to nil.   Also my call to Parse.FacebookUtils.isLinked(user) returns false even thought its true and I have no way to retrieve the access token from the user object.\r\n\r\nAny help would be appreciated in figuring out what I'm doing wrong or if this is a bug.  Thanks!"},"comment":{"url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/comments/193324522","html_url":"https://github.com/ParsePlatform/parse-server/issues/755#issuecomment-193324522","issue_url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/755","id":193324522,"user":{"login":"flovilmart","id":364568,"avatar_url":"https://avatars.githubusercontent.com/u/364568?v=3","gravatar_id":"","url":"https://api.github.com/users/flovilmart","html_url":"https://github.com/flovilmart","followers_url":"https://api.github.com/users/flovilmart/followers","following_url":"https://api.github.com/users/flovilmart/following{/other_user}","gists_url":"https://api.github.com/users/flovilmart/gists{/gist_id}","starred_url":"https://api.github.com/users/flovilmart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flovilmart/subscriptions","organizations_url":"https://api.github.com/users/flovilmart/orgs","repos_url":"https://api.github.com/users/flovilmart/repos","events_url":"https://api.github.com/users/flovilmart/events{/privacy}","received_events_url":"https://api.github.com/users/flovilmart/received_events","type":"User","site_admin":false},"created_at":"2016-03-07T16:19:22Z","updated_at":"2016-03-07T16:19:22Z","body":"@michaelbina in your code, ` user.get(userObjectId)` does that refers to a userQuery?\r\n\r\nIs the user currently logged in?\r\nCan you share more of that snipet so we have more context?"}}