I’m trying to implement Facebook Login in my web app. I created my own login screen with the Facebook login button.
I already got the callback from Facebook to my app working (which means I receive the facebook code) and extracted the code from the URL but get a 500 error (without any further info) when I call (via ajax post) https//my.domain.com/api/v2/user/session?oauth_callback=true&service=facebook&code=some_code_from_facebook to receive a session_token.
Is it possible to use a custom login screen (and a callback page within my web app) or did I understand something wrong.
So to be clear, did you create the Facebook OAuth service inside of Dreamfactory and then when you put the service in use in the web app, you are getting a 500? Can you tell if you are getting the 500 from Facebook or Dreamfactory? If you want to expand the logging details in your Dreamfactory instance, head to the .env file and change the following values:
Yes, I created the Facebook OAuth service inside of Dreamfactory. I get the error message from Dreamfactory.
I also successfully tested the service with the built-in Dreamfactory login screen (of course with different OAuth Redirect URI).
Unfortunately the log file doesn’t provide much more information: