1

Hi I have a 'publish_actions' approved Facebook live App.

It perfectly works for developer accounts and can upload image.

But when any normal user accessing this app, it shows a:

fatal (#200) Requires extended permission: publish_actions

Can any one suggest me solution for this?

techraf
  • 64,883
  • 27
  • 193
  • 198
MaRKR
  • 47
  • 1
  • 11

1 Answers1

2

Approved in review means that your app can ask normal users for a permission.

It does of course not mean, that the current app user has automatically granted that permission to your app. You still need to ask them for it, via the login flow.

CBroe
  • 91,630
  • 14
  • 92
  • 150
  • i have ask that once in login time, and when the time of post image it didn't show. – MaRKR Sep 29 '16 at 09:50
  • Debug the access token, to see if it actually contains the permission. – CBroe Sep 29 '16 at 10:20
  • how can i get the access token ? – MaRKR Sep 29 '16 at 10:48
  • when i debug access token of developer accounts it shows email, publish_actions, public_profile permissions, but normal user shows email, public_profile ! how can i sort it out ? please help me – MaRKR Sep 29 '16 at 10:56
  • Then you did not ask the user for the permission, or they declined it. – CBroe Sep 29 '16 at 11:26
  • How can i ask for the permisssion ? – MaRKR Sep 29 '16 at 11:40
  • By sending them through the login flow. – CBroe Sep 29 '16 at 11:46
  • this is my code section `$permissions = ['email','publish_actions']; $loginUrl = $helper->getLoginUrl(URL.'shareimage.php', $permissions); header("Location:".$loginUrl);` – MaRKR Sep 29 '16 at 12:02
  • 1
    If you have the permission approved, then the user should be asked for it with this code - unless they have been asked before already, and declined the permission. In that case, you need to add a special parameter to the login dialog call, to re-ask for that permission. (But for testing you can also just remove the app completely from the user’s FB settings, that cleans the slate, and they will be asked again next time.) – CBroe Sep 29 '16 at 12:08
  • what kind of special parameter ? i have cleared the fb settings and re-login and shows permissions one for public_profile another for publish_actions and both are grant ,shows the same error at the time of post image – MaRKR Sep 29 '16 at 12:38
  • Are you sure you are using that very same access token at the point where you are trying to make the post? Please edit your question to include relevant parts of code. – CBroe Sep 29 '16 at 12:45