stream.publish and attachments

Aug 17, 2009 at 8:42 PM

I am successful in doing stream.publish() with an image attachment, but it seems that I need values for attachment.properties.category and attachment.properties.ratings.  If I leave attachment.properties as null or even fill category/ratings with blank string, I get "invalid parameter".  Can anyone tell me how to do a stream.publish() with an image attachment, and NOT have any of attachment.properties filled out?  I don't want the category: and ratings: strings showing up in the post.

 

Thanks!

Aug 18, 2009 at 6:17 PM

Currently you have to go into the FDT source and change the stream.cs file to have this -

if (attachment.properties != null)
                {
                    var cat = new Dictionary<string, string>{
						{"text", attachment.properties.category.text},
						{"href", attachment.properties.category.href}
					};
                    var prop = new Dictionary<string, string>{
						{"category", JSONHelper.ConvertToJSONAssociativeArray(cat)},
						{"ratings", attachment.properties.ratings}
					};

                    propString = JSONHelper.ConvertToJSONAssociativeArray(prop);
                }