jeudi 24 mars 2016

How to Laravel mobile app api for facebook login

Hi i'm working on a web with Laravel. On the web, I use socialite to login with Facebook, but I don't know how to do that with api for mobile to connect. On the web, the flow is the user request to the website, socialite will redirect to facebook to obtain data and redirect back to the redirect url that we register to do authentication.

I don't know if with mobile app is the same? How can I do it since there is only 1 redirect url and how to detect if the request is from website or from mobile app. Because request from website, ultimately is return view and request from mobilr is return json, right?

Or the mobile side, mobilr developer will do the obtaining data then send it to the website through api to authenticate?

Please help me on this. Thank u. Sorry for my bad English. If anyone does not understand my situation please ask me again.

Thank you all.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire