Kover as a service ( Formerly on [https://kaas.fun](kaas.fun) )
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

22 lines
630 B

<?php
ini_set('display_errors',1);
error_reporting(E_ALL);
session_start();
require( __DIR__.'/Facebook/autoload.php' );
require( __DIR__.'/cred.php' );
$fb = new Facebook\Facebook(array(
'app_id' => $_YOUR_APP_ID,
'app_secret' => $_YOUR_APP_SECRET,
'default_graph_version' => 'v2.3',
));
$bg_path = "images/bg1.jpeg";
function debug_to_console($data) {
if(is_array($data) || is_object($data))
{
echo("<script>console.log('PHP: ".json_encode($data)."');</script>");
} else {
echo("<script>console.log('PHP: ".$data."');</script>");
}
}