我正在开发这个 facebook 应用程序,我正在遵循 facebook 开发人员中心中记录的方法。我想让我的应用程序向用户询问一组特定的权限,并且我使用了开发人员中心给出的完全相同的代码,并指定了我的应用程序 ID 和命名空间。代码如下:
<?php
require 'server/fb-php-sdk/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>');
}
?>
问题是,当我输入画布的 url 时,什么都没有显示。我想向用户显示我的应用想要访问某某事物。我怎么做?我是这个领域的新手,非常感谢您的帮助。在此先感谢