I am trying to integrate the new Open Graph objects, actions and aggregations into our site.
I have:
- Created an object and an associated action
- Added the correct markup to my page
- Verified the markup from #2 is valid in the Facebook Debug tool
When trying to submit the action for approval, it tells me I need to publish the action at least once. I tried doing that using the following request as in the documentation:
https://graph.facebook.com/me/<my-namespace>:<my-action>?<my-object>=<url-to-object>&access_token=<my-access-token>
The response didn’t give me any errors but responded with an empty data attribute.
{
data: [ ],
paging: {
next: "<paging-url-here>"
}
}
I thought that perhaps the empty data in the response was indirect way to tell me it succeeded but when I look at my profile the action wasn’t published, nor will Facebook let me submit the action (they still tell me I need to publish the action at least once).
I’ve verified the access token is valid, and in fact, I messed with it by removing a few characters and the request fails telling me the access token is invalid.
I’m obviously missing something obvious here, so would love some help!
Facebook has a bug making GET behave differently than POST. If you’re experiencing the same problem I am and using a GET, switch to a POST and it should work.