0

我正在用 php 构建 facebook 粉丝门页面。它可以 100% 工作,但仅适用于静态页面,例如 fb.php。现在我需要这样的东西:

FB.php>>>

$id=$_GET['id'];

///and need to put this variable into NEXT and CANCEL url.. something like that

> $loginUrl = $facebook->getLoginUrl(array(
            'canvas' => 1,
            'fbconnect' => 1,
            'display' => 'page',
            'req_perms' => 'user_likes',
            'next' => 'somesite.com/FB.php?id=$id',
            'cancel_url'=> 'somesite.com/FB.php?id=$id'
4

1 回答 1

0
$loginUrl = $facebook->getLoginUrl(array(
            'canvas' => 1,
            'fbconnect' => 1,
            'display' => 'page',
            'req_perms' => 'user_likes',
            'next' => 'somesite.com/FB.php?id='.$id,
            'cancel_url'=> 'somesite.com/FB.php?id='.$id
于 2012-04-28T10:12:43.220 回答