Kendi oluşturduğum uygulama ile girdiğim tes grubunda yazı paylaşma istiyorum.

  $request = new FacebookRequest(
  $session,
  'POST',
  '/1432016883768415/feed',
  array (
    'message' => 'This is a test message',
  )
);
$response = $request->execute();

Hata alıyorum. Dönen hata mesajları

Fatal error: Uncaught exception 'Facebook\FacebookPermissionException' with message '(#200) The user hasn't authorized the application to perform this action' in D:\wamp\www\facebook\Facebook\FacebookRequestException.php on line 128
acebook\FacebookPermissionException: (#200) The user hasn't authorized the application to perform this action in D:\wamp\www\facebook\Facebook\FacebookRequestException.php on line 128
Hatayı nerede yapıyorum


EKLEME :

Uygulamaya giriş için kullandığımız linkde de izinleri eklememiz gerekiyormuş

  echo '<a href="' . $helper->getLoginUrl( array( 'email', 'user_groups', 'publish_stream', 'publish_actions','user_managed_groups' ) ) . '">Login</a>';