I am getting the following error while publishing the facebook action using open graph api,
(Exception – #1611072) The action you’re trying to publish is invalid because it does not specify any reference objects. At least one of the following properties must be specified: post.
The actions are properly mapped to object in facebook app dashboard and i also tested the open grap object (my web page) in the debugger and there are no warnings.The meta tags in the page has been set properly.
I am using C# for publishing the actions.
Code follows:
var fb = new FacebookClient("XXX");
var parameters = new Dictionary<string, object>
{
{"og:type", "testnamespace:post"},{"og:url","http://test.sitename.com/postdetails/3247/Hello-ktm"},
{"og:title", "test post"},
{
"og:image",
"http://cdn.test.com/842-ff7c1e64-8d6f-4989-bf77-1a1f1520b39e_th.png"
}
};
var response = fb.Post("me/testnamespace:share", parameters);
Please help.Its urgent.
Looks like the name of your object you connected the action with is
post.So you will also have to give a parameter named
post, containing the URL to your OG object, when publishing the action.