Oauth login does not work on mobile devices

Asked

Viewed 78 times

1

I created my Oauth login system with php that works normally by accessing by computer, but when testing it by my mobile error, it says that my url is not authorized either in login via facebook or login by google. Remembering that my site does not have a domain for when it is accessed by a mobile device, it uses the same url on all devices. Can you help me?

  • I have the same problem. I haven’t found the solution anywhere. I hope you can answer here.

  • Are you opening the login authorization page in a pop-up or a new page? As far as I know Chrome on Android has problems dealing with a popup, for some reason I don’t know. I don’t know if it’s the same problem.

  • by default he opens the popup on the pc, but on the cell seems to open another page even... I figured it could be how my hosting server treats mobile access... maybe he would create a domain internally, I don’t know, it’s the only thing I ever imagined it could be, but it doesn’t happen either. I also downloaded firefox to test and gave the same problem so the problem is not with Chrome, I asked a person to test on IOS and nothing too =. I don’t know what else to do

  • Vinicius if you find the answer please send me here too

1 answer

0

I found it. Oauth is working, but I needed some additional settings. Go to http://developers.facebook.com/, and set your app login settings as follows:inserir a descrição da imagem aqui

The last button is what causes you to authorize mobile login. Change and save and it will work.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.