I recently uploaded a code snippet to phpfog, and I ran into a problem that didn't happen locally:
When the page loads, it tries to get $ idFacebook, which must be installed:
$idFacebook = $facebook->getUser(); if ($idFacebook) { ... }
I registered on Facebook, but the condition does not work, and a button appears to enter:
<div class="fb-login-button" data-scope="user_likes,user_photos"></div>
Another problem is that when I click the button, it seems that the login window appears, but it automatically closes very quickly.
My code is basically the same as Heroku when you create the Facebook app. The repository is: https://github.com/heroku/facebook-template-php . I canโt find how to solve it, and I saw that many people had several problems logging into facebook.
I look forward to helping you. Thanks in advance.
javascript php facebook facebook-login
honnix
source share