OAuth Facebook - SmartJSONEditor/PublicDocuments GitHub Wiki
Configure Facebook App Settings
https://github.com/SmartJSONEditor/PublicDocuments/blob/master/Images/FacebookAuth.png
In order to authorize with Facebook, your Facebook application must include allowed domains.
Setup Smart JSON Editor needs to be In application settings, define accepted domains in your Facebook app settings.
You must upload a single web page with redirect to : oauth-smartjsoneditor://oauth-callback/. Specify this page as your callbackURL
Redirect example
<?php
function preserve_qs() {
if (empty($_SERVER['QUERY_STRING']) && strpos($_SERVER['REQUEST_URI'], "?") === false) {
return "";
}
return "?" . $_SERVER['QUERY_STRING'];
}
header("Status: 301 Moved Permanently");
header("Location: oauth-smartjsoneditor://oauth-callback/" . preserve_qs());
?>