I am using a Facebook login with extended publish_actions permission using the PHP SDK . It displays a message in the login dialog, even if I logged in with my main administrator account:
Submit to login. Some of the permissions below have not been approved for using Facebook.
I have the following code snippet for posting on a user timeline.
try { $response = (new FacebookRequest( $session, 'POST', '/me/feed', array( 'message' => 'This is test post.' ) ))->execute()->getGraphObject(); echo "Posted with id: " . $response->getProperty('id'); } catch(FacebookRequestException $e) { echo "Exception occured, code: " . $e->getCode(); echo " with message: " . $e->getMessage(); }
When I executed the code, I got an error
Excluded, code: 200 with the message: (# 200) The user did not allow the application to perform this action
According to the Facebook login viewing documentation, you are not required to send a registration overview for application developer accounts.
However, to help you create your Facebook experience, your application developers will be able to see and provide any permission without requiring a Facebook review.
Note. People who are listed on the Roles tab of the application will have access to advanced permissions without going through a review (for example, publish_actions or manage_pages ).
I added another administrator account and a developer account to the Roles tab of the application, and let them try, but still face the same problem.
The status of my application is live. I am testing it from a local site using a virtual host such as mysite.local, but this should not be a problem since I could add it in the application settings.