I am trying to create a custom object using Facebook SDK in this way:
< Code> bundle parameters = new bundle (); Params.putString ("Type", "android_themes: Background"); Params.putString ("url", "http://samples.ogp.me/471503979602314"); Params.putString ("Heading", "Sample Background"); Params.putString ("Description", ""); Request Request = New Request (Session .GetActivisation (), "I / Objects / Android_THAMES: Background", Parameters, HTTP Mod. POST); Response feedback = request.executeAndWait (); // handle handle / but I keep getting this error:
{feedback: response code: 400, graph object: empty, error: { HTTP Status: 400, Error Code: 2500, Error Type: OAuthException, Error Message: Can not specify type in both path and query parameters.}, IsFromCache: false}
Any ideas what does this mean? And when I am able to correct it, what will I get? I'm not sure ... the PS publication works right on my predefined object, just this problem.
The object is a JSON-encoded version of an object, the sample code generated for you was incorrect. Also remove the type from the parameter list.
Object: Object is an JSON-encoded version of an object. Types used here are types used in books. Book type You can include any of the standard properties. Note that the type is not included in the call. This is because it is contained with the path you use during the call, why the data element in JSON has the properties, see the properties for it.
It is used to create an object, which can then be used to create actions
No comments:
Post a Comment