php – Open Facebook Login according to platform

Question:

I'm using the SDK – PHP to login to Facebook, when I access it from a PC it opens the normal facebook site, but when it opens on the cell phone it opens the site through the browser too. Is it possible to make him open the application if the user is on the cell phone and after logging in, return to the browser?

Answer:

It's not possible! To access facebook on the mobile browser, the user must be logged in to the browser itself. There is no way for the browser to interact with the facebook application. The only way is for you to create a hybrid application with Ionic or Phonegap to be able to log in from the application itself without having to be logged in in the browser. Hope this helps!

Scroll to Top
AllEscort