I'm using the ads api through graph. Just transferred over. We build up an elaborate set of ExpandoObjects to post the ad. One of the sub-ExpandoObjects is called "creative" and it has the creative. The JSON encoding that's happening in here seems to be brain damaged about escaping double quotes. Here's a part of the posted form grabbed from the stream. Note the "body" text has double quotes in it and whatever JSON encoding is happening inside the FacebookSDK seems to be falling down here:
Content-Disposition: form-data; name="creative"
{"title":"Put your quarters up!","body":"Please "check" out the classics at the coinop.org museum.","image_file":"
@image_7036.png","type":27,"story_id":"266129693418752_286263474731831","object_id":266129693418752,"name":"Dynamic 1_polybius.aspx_Arcade Games"}
--8ce614f4e9a4932
this is the function we have to do the post:
public static dynamic GraphPost(string url, IDictionary<string, object> postData)
{
var app = new Facebook.FacebookClient();
dynamic result = app.Post(url, postData);
return result;
}
the url is:
https://graph.facebook.com/act___________/adgroups?access_token=______
So it has the proper token, etc.
Any ideas on why that's happening? I don't want to write checks for double quote handling if this is a bug in the FacebookSDK, which at the moment I think is true.
thanks