I am using Graph API for Facebook and I'm trying to post something in a FB Group but i get a permission error that I can't solve. I tried giving permissions like I found online but it's not working. Can you please help?
$fb = new Facebook([
'app_id' => 'app_id',
'app_secret' => 'app_secret',
'default_graph_version' => 'v2.8',
'default_access_token' => 'access_token', // optional
]);
$permissions = ['publish_actions','manage_pages'];
$fb->post('/page_id/feed');
Any help will be deeply appreciated!