I'm trying to work my way through the Facebook tutorial publish and open graph story for iOS, https://developers.facebook.com/docs/tutorials/ios-sdk-tutorial/publish-open-graph-story/
Step 3 is failing for me. When I use the graph API explorer I get the error
{
"error": {
"message": "Unsupported post request.",
"type": "GraphMethodException",
"code": 100
}
}
I've looked through a bunch of answers on stack overflow relating to this error but none seem to be my problem. I have selected get access token and have publish permissions. The page is not alcohol related and the user page I'm using is not age restricted.
I have selected my application from the top of the page. I have selected post and then entered my story object in the space provided me/gopiratestd:boss
then I add a new field and use the key beat on the left and then the following url on the right. https://hidden-castle-7245.herokuapp.com/opengraphobject.php?fb:app_id=554329451276476&og:type=gopiratestd:boss&og:title= beataboss&og:description=%22Beat%22&og:image=http://images.all-free-download.com/images/graphicmedium/beautiful_cat_picture_6_168770.jpg&body=Beat
Then when I hit submit it returns that error.
Is there anything obvious I'm doing wrong here?
When I use that link in the object debugger it doesn't return any errors.
The Fix. Make sure you're logged into the correct account — the one that is an admin of your Group or Page. If you are logged in correctly, reach out to the Page or Group admin to make sure your permissions are set to Moderator or above.
This error generally happens when you are logged out of your Facebook account, or you do not have permission to publish to the page with the account that you are currently logged into.
OAuthException: If you receive an OAuthException error, it means that Edgar doesn't have the correct permissions to access your Facebook accounts right now. The password may have been changed on Facebook or Facebook may have reset your security session.
fbtrace_id : Internal support identifier. When reporting a bug related to a Graph API call, include the fbtrace_id to help us find log data for debugging.
Error 100 means that there is a plain syntax error in the URL you are posting to.
I suspect you have a custom graph url set which doesn't match your action - see http://developers.facebook.com/docs/opengraph/creating-action-types :
Graph API URL This customizes the exact endpoint used when publishing actions, which by default for custom action types is /me/{app-namespace}:{action-type-name}.
Your action is beat, your object type is boss so it should be
me/gopiratestd:beat
and
boss=https://hidden-castle-7245.herokuapp.com/opengraphobject.php?fb:app_id=554329451276476&og:type=gopiratestd:boss&og:title= beataboss&og:description=%22Beat%22&og:image=http://images.all-free-download.com/images/graphicmedium/beautiful_cat_picture_6_168770.jpg&body=Beat
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With