17. 6. 2016 - Let's see how to code this up using the Facebook SDK for PHP v5. Users must be redirected to the Facebook site to log in and authenticate .