We are moving our forum in GitHub Discussions. For questions about Phalcon v3/v4 you can visit here and for Phalcon v5 here.

Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

Facebook OAuth callback

Hello,

Facebook OAuth callback is something like http://example.com/oauth/facebook/callback.php?id=34592398472893742.

Since Phalcon doesn't use query parameters, how can I setup a controller route for the Facebook OAuth callback?



40.7k
Accepted
answer

Why you say that phalcon doesn't use query paramters? Can't you use $_GET['id'] ? Can't you get $this->request->getQuery("id") ? or better $this->request->getQuery("id","int") with sanitizing filter?