0

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

<?php
     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>');
}
?>

Edited by surferbloggy: add screnshot

Attachments Schermata_2014-04-05_alle_12.01_.10_.png 161.51 KB
2
Contributors
1
Reply
9
Views
3 Years
Discussion Span
Last Post by Hemendra_1
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.