7

I am trying to post to my group by a business app type facebook but getting below error:

Fatal error:  Uncaught Facebook\Exceptions\FacebookAuthorizationException: (#200) 
If posting to a group, requires app being installed in the group, and \
either publish_to_groups permission with user token, or both pages_read_engagement \
and pages_manage_posts permission with page token; If posting to a page, \
requires both pages_read_engagement and pages_manage_posts as an admin with \
sufficient administrative permission

I already ask permission when login( i am using facebook-php-sdk and facebook graph api v2.10):

  $permissions = ['email','publish_to_groups' ];
  $loginUrl = $helper->getLoginUrl('mydomain/fb-callback.php', $permissions);

I go to https://developers.facebook.com/tools/debug/accesstoken and see result of my access_token: Access token info enter image description here

So i think problem is my app is not installed in the group. I haved found a similar thread Facebook API - How to add application to group in developer mode, but in this answer, it's just say that if i am an admin of both app and group then it will work, but it still return above error. Now i even can't find this app in personal( Settings > Apps) and my group ( My groups > Settings > Apps). Can anyone help me solve this problem, a clue or a tutorial create facebook app post to group please ? Thank you !

Rakesh kumar Oad
  • 1,332
  • 1
  • 15
  • 24
  • 3
    Hello, did you resolve the problem? I have the same issue. I also can't see the app in my group apps and I am admin of both - the app and the group. – stefanprokopdev May 10 '21 at 07:00
  • You can create a test app of your app and test again. It's a clone of your app https://developers.facebook.com/docs/development/build-and-test/test-apps/ – Lê Tuấn Khang May 10 '21 at 14:59
  • Ok, I created the test app but I still dont see the test app in group apps. – stefanprokopdev May 11 '21 at 05:46
  • You don't have to see it. Now you can post to your group by graph api but remember: only you and tester of your test app can see this post – Lê Tuấn Khang May 11 '21 at 06:16
  • What the hell of Facebook and their constantly changing API. Did anyone manage to get this to work? – w3spi Oct 28 '21 at 10:54
  • 2
    I have the same problem. Created a new page and a new app. Trying to create a post with an API and getting the same issue but I can't find any valid docs on how to add my created app to the FB page. Any suggestions? – Arayik Feb 17 '22 at 09:36
  • Any solutions to this? – Viktor Brešan Aug 19 '23 at 14:52

0 Answers0