Main Ref
Another ref
Ref for Login with DB
Facebook tutorial for login with JS
-
Under
Settings >> Basic
- set
App domains
- get
App Id
andApp secret
- set
composer require facebook/graph-sdk
- copy
index.php
andprofile.php
- replace
App Id
,App secret
andOAuth Redirect URI
- Under Products >> Facebook Login >> Settings
setValid OAuth Redirect URIs
Test Operations
Get albums
Possible Errors
- Facebook OAuth "The domain of this URL isn't included in the app's domain"
Under Products >> Facebook Login >> Settings
set Valid OAuth Redirect URIs
-
This app is not currently accessible and the app developer is aware of the issue. You will be able to log in when the app is reactivated.
- Check if app_id and app_secret is correct.
- Check if the user is added as Administrative or Development Contact
-
Facebook SDK returned an error: Cross-site request forgery validation failed. The "state" param from the URL and session do not match
Check wether all required $_SESSION vars are set and session_start()
is called.
-
During testing it shows "there is some problem with the app"
- you might have set
permission
for something eg:email
, but it is not set in app admin of developer page. in theUse Cases
page of facebook developer page of app. addemail
inAuthentication and account creation
- you might have set
-
During testing , i added another user as
administrator
and tried to access the app, it showsapp is still under development
.- you might have added the user as administrator. But that
user also needs to acknowledge and approve it clicking the notification
.
- you might have added the user as administrator. But that
-
URL Blocked: This redirect failed because the redirect URI is not whitelisted in the app’s Client OAuth Settings. Make sure Client and Web OAuth Login are on and add all your app domains as Valid OAuth Redirect URIs.
- Properly set
App Domains
in Settings >> Basic andOAuth URLs
under Under Products >> Facebook Login >> Settings
- Properly set
|
|