post 无法通过 laravel 访问 Facebook 用户的墙

unable post to facebook user's wall by laravel

我正在使用 FaceBook SDklaravel 并尝试 post 到用户的测试角色列表,我有他的 access_token 并且此令牌有 Scopes email, manage_pages, pages_show_list, publish_pages, publish_to_groups, public_profile

但每次我尝试 post 我都会收到那条消息

(#200) If posting to a group, requires app being installed in the group, and \ either publish_to_groups permission with user token, or both manage_pages \ and publish_pages permission with page token; If posting to a page, \ requires both manage_pages and publish_pages as an admin with \ sufficient administrative permission

我的控制器代码是

protected $fpApi;

public function __construct(FaceBook $facebook)
{
    $this->middleware(function($request,$next) use($facebook){
        $facebook->setDefaultAccessToken('WucllFJglb ..... Token from db');
        $this->fpApi = $facebook;
        return $next($request);
    });
}




public function retrieveUserProfile(){

    try{
        $attempt = $this->fpApi->post('/me/feed',['message'=>'try post a post'])->getGraphNode()->asArray();
        if($attempt['id']){ dd('done');}
    }catch(\FacebookSDKException $e)
    {
        dd($e);
    }

}

无法再发布到用户墙上。必要的权限 (publish_actions) 已弃用。

变更日志:https://developers.facebook.com/docs/graph-api/changelog/breaking-changes/#4-24-2018