I am trying to publish actions on behalf of a facebook page I administer via an app with the manage_pages permission. I am able to publish an action via a graph post of the folloing form:
<pageID>/<appNameSpace>:<actionName>?<objectName>=<objectURL>
But if I then query the app for published actions via the following call:
<pageID><appNameSpace>:<actionName>?access_token=<PageAccessToekn>
I get the following error:
{
"error": {
"message": "An unknown error has occurred.",
"type": "OAuthException",
"code": 1
}
}
Update:
If I attempt to publish using the following URL:
<pageID>/<appNameSpace>:<actionName>?<objectName>=<objectURL>&access_token=<pageToken>
If get the following error:
{"error":{"message":"(#100) The Action Type <appNameSpace>:<actionName> is not approved, so app <appID> can only publish to administrators, developers, and testers of the app. User <pageID> is not one of those roles.","type":"OAuthException","code":100}}
The page I am attempting to post on behalf of is administered by an app admin. I don't see any where in the roles section of the facebook developer app where facebook pages can be added as admins. Is there any what to test this? Is it possible to publish a custom action on behalf of a page?