I have migrated my project from the deprecated “mod_parse” to the new Corona Parse plugin by Develephant. Everything works fine except logging in with Facebook. I have read the Parse REST API guide on the topic (https://www.parse.com/docs/rest/guide#users-linking-users) and it seems that the logic is pretty much the same as with mod_parse, as explained in the documentation (http://www.develephant.net/managing-facebook-users-with-the-corona-sdk-parse-module/):
-
Get the authentication data from Facebook:
authenticationData = { [“facebook”] = { [“id”] = tostring(facebookUserId), [“access_token”] = tostring(accessToken), [“expiration_date”] = parse.timestampToISODate(sessionExpiry) } }
-
Use this data in a login request to Parse via the plugin:
parse.request(parse.User.login):options({ authData = authenticationData, levelCounter = 0 }):response(onResponse)
The problem is that I get no response whatsoever from Parse when sending this. I have checked that the authentication data I get from Facebook (using V4 plugin) is correct. Seting the Parse plugin to debug mode produces no output in the console (tried on ios 9.2 viewing logs with xCode app). Since the plugin is so new, I can’t really find much help on this issue as most resources on the web deal with mod_parse.
Is this a known issue or have I misunderstood something?