I am trying to create custom object using facebook SDK like this:
Bundle params = new Bundle();
params.putString("type", "android_themes:background");
params.putString("url", "http://samples.ogp.me/471503979602314");
params.putString("title", "Sample Background");
params.putString("description", "");
Request request = new Request(
Session.getActiveSession(),
"me/objects/android_themes:background",
params,
HttpMethod.POST
);
Response response = request.executeAndWait();
// handle the response
But I am keep getting this error:
{Response: responseCode: 400, graphObject: null, error: {HttpStatus: 400, errorCode: 2500, errorType: OAuthException, errorMessage: Cannot specify type in both the path and query parameter.}, isFromCache:false}
Any ideas what is this mean? And what will I get when I be able to do it right? I am not so sure... P.S Publishing actions on my predefined objects works fine, just this problem.