Custom Authentication failed

Options
I am trying to login on photon using Facebook, but I am getting Custom Authentication Failed error.
After debugging I got this error code "The request is invalid because the app is configured as a desktop app". I am not able to understand this, what does it mean?
Is the configuration wrong on the facebook side or the photon side?

Comments