Open Login Facebook according to platform

Asked

Viewed 787 times

3

I’m using the SDK - PHP to login to Facebook, when access by a PC it opens the normal Facebook site, but when open by mobile he opens the site by browser as well. You can make it open the application if the user is by mobile and after logging in, return to the browser?

  • 2

    No. Unless you develop a native app that sends the command to facebook.

  • Reinforce what @juniorb2ss said, if you open your site in a mobile browser it will open fb login also within the browser. Now if you want to do that native login, I’ll give you this tip, try building an app for your site using the Ionic framework.

  • Have you tested Hybridauth (http://hybridauth.sourceforge.net/)? I await a return.

1 answer

1


It is not possible! To access facebook in the mobile browser it is necessary for the user to be logged in the browser itself. There is no way the browser can interact with the Facebook app. The only way is for you to create a hybrid application with the Ionic or Phonegap to be able to log in by the app itself without having to be logged in to the browser. I hope I’ve helped!

Browser other questions tagged

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