Fetching To access Facebook authdata from parse-server Cloud Function. useMasterKey option must be true.
var Parse = require('parse/node').Parse; Parse.initialize("abcdefghijklmnopqrstuvwxyz","aaaabbbbccccddddeeeeffff","ababababababababababab"); Parse.Cloud.useMasterKey(); Parse.serverURL = "https://parse.url.com/parse"; const userLog = Parse.Object.extend('User'); const SearchUser=(parseId,callback) => { var userQuery = new Parse.Query(userLog); var date; userQuery.equalTo("objectId",parseId); userQuery.find( { success: results => { if(results.length == 1) { var ret = {}; ret.parseId = parseId; ... ret.authData = results[0].get("authData"); ... if(ret.authData==undefined) ret.authData = ""; }else { ... } callback(ret); } else callback({"fail":"parse_FindError"}); }, error: err => { console.log("err : "+err.message); callback(err.message); } }); };