<?php
/**
* facebook | oaouth handler
*
* @package Sngine
* @author Zamblek
*/
// fetch kernal
require('kernal.php');
// If the code is not set so there is error
if(!isset($_REQUEST['code'])) {
session_destroy();
header('Location: '.SITE_URL.'/index.php');
}
// check user
try {
$user->facebook_checkUser();
}catch (Exception $e){
SystemError($translate->__("Internal Error"), $e->getMessage());
}
header('Location: '.SITE_URL.'/home.php');
?>