我'm creating an facebook app for kart racing. I'用户注册了Facebook,范围为_2588409 .

这使我有机会将他的结果发布到他的墙上,直到访问令牌到期(2小时) .

每次用户完成比赛时,我的客户都需要发布消息或共享链接或共享活动 .

我现在使用的代码是:

$config = array(
        'appId' => 'xxxx',
        'secret' => 'xxxxx',
        'allowSignedRequest' => false // optional but should be set to false for non-canvas apps
    );

    $facebook = new Facebook($config);

        if($user_id) {

        // We have a user ID, so probably a logged in user.
        // If not, we'll get an exception, which we handle below.
        try {
            $ret_obj = $facebook->api('/'.$user_id.'/feed', 'POST',
                array(
                    'link' => 'www.example.com',
                    'message' => 'Posting with the PHP SDK!'
                ));
        }

是否有其他权限我需要能够以某种方式发布到用户墙,或共享链接?怎么能实现这一目标?

编辑:更具体地说,卡丁车比赛不是一个Facebook在线游戏,它是真正的世界卡丁车比赛,我想在比赛结束后以某种方式将赛车结果发布到他的墙上 .