I have created a custom object and custom action with Open Graph, and they have already been approved by facebook. I am able to publish this custom action as a user, but not as a page.
The steps I follow are:
- The user authorize the app via the login dialog, granting the publish_actions permission
- I exchange the short-lived user_access_token for a long-lived one.
- I fetch https://graph.facebook.com/me/accounts?access_token=... and get the page_access_token
- I try to publish a custom action on the page timeline on behalf of the page, without success, getting an enigmatic
OAuthException
with message "An unknown error has occurred."
The auth dialog is correctly asking all the permissions, and posting the same custom action on a user wall on behalf of the user works properly.
Is this a bug or I am missing something? Anyone managed to publish a custom action AS A PAGE?