parse-server icon indicating copy to clipboard operation
parse-server copied to clipboard

PFFacebookUtils.linkUserInBackground returning nil on heroku server

Open andreiurzica opened this issue 10 years ago • 11 comments

hello i migrated my server on heroku. everything works fine, but when i try to link an existing user with facebook it gaves me a nil error if i switch to parse server on parse.com it works. i also tried with parse running locally, but same nil error. please help me

andreiurzica avatar Mar 17 '16 22:03 andreiurzica

Can you please start your parse-server with VERBOSE=1 before the command and post the relevant logs?

flovilmart avatar Mar 17 '16 22:03 flovilmart

how can i start with verbose?

andreiurzica avatar Mar 18 '16 09:03 andreiurzica

just VERBOSE=1 in your environment variables on HEROKU

flovilmart avatar Mar 18 '16 17:03 flovilmart

There is no reference from the Facebook linking part here, can you make sure the logs contains the relevant information

flovilmart avatar Mar 18 '16 18:03 flovilmart

i saw that that is all ai have from logs :(

andreiurzica avatar Mar 18 '16 19:03 andreiurzica

you can use heroku logs --tail to have the logs streaming to your terminal, then you can try to link and get the proper logs

flovilmart avatar Mar 18 '16 19:03 flovilmart

i dont have any log referencing any facebook link

andreiurzica avatar Mar 18 '16 19:03 andreiurzica

Yeah but you need to link the current user in the client to have those logs happening I believe

flovilmart avatar Mar 18 '16 20:03 flovilmart

even when i set the server to parse.com i still don t get any log. i get some logs in xcode console.. this is with parse.com server 2016-03-19 18:16:43.445 Traffik[6719:221116] FBSDKLog: starting with Graph API v2.4, GET requests for /me/picture?width=400&height=400&redirect=false should contain an explicit "fields" parameter and it logs in perfectly

but when i change it to my own heroku parse server i get a nil error in xcode console.

i also tried to make another facebook app so that i have another facebook app id if i set parse server with the new facebook app in info.plist i get Unacceptable Facebook application id. (Code: 251, Version: 1.12.0) Optional("Error Domain=Parse Code=251 "Unacceptable Facebook application id." UserInfo={code=251, temporary=0, error=Unacceptable Facebook application id., NSLocalizedDescription=Unacceptable Facebook application id.}") The app works only with parse server and the first facebook app

andreiurzica avatar Mar 19 '16 16:03 andreiurzica

@andreiurzica can you provide the logs that you have when running with VERBOSE=1? That would really help debugging that issue.

flovilmart avatar Apr 04 '16 02:04 flovilmart

No response in many days, closing.

drew-gross avatar May 13 '16 19:05 drew-gross