Sunday, February 13, 2022

[FIXED] How should I handle Facebook logins in my API [CakePHP 3]

Issue

I have an API with CakePHP and I want to handle login with Facebook, how should I go about this? I though about just creating a new user like usual with the information Facebook gives, but is there something else I can do? Users have to use a token generated by my app to make requests to my API.


Solution

Take a look at this plugin https://github.com/ADmad/CakePHP-HybridAuth. It makes Facebook login super easy to integrate.



Answered By - XuDing

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.