Hi, i need a quick help to configure a Facebook app
when i go to the Facebook address it is this in the screenshot a gray page

everythig seems right but the game is not shown

i’ve added this code to the index.php
with the right ids but nothing

if someone can help me i'll send my Facebook credentials
let me know if you could help me to configure it,
i’ll pay for the disturb
thank you

     require 'src/facebook.php';

    $app_id = 'APP_ID';
    $app_secret = 'APP_SECRET';
    $app_namespace = 'APP_NAMESPACE';
    $app_url = 'https://apps.facebook.com/' . $app_namespace . '/';
    $scope = 'email,publish_actions';

    // Init the Facebook SDK
    $facebook = new Facebook(array(
         'appId'  => $app_id,
         'secret' => $app_secret,

// Get the current user
$user = $facebook->getUser();

// If the user has not installed the app, redirect them to the Login Dialog
if (!$user) {
        $loginUrl = $facebook->getLoginUrl(array(
        'scope' => $scope,
        'redirect_uri' => $app_url,

        print('<script> top.location.href=\'' . $loginUrl . '\'</script>');
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.