#64: facebook feed update complains about img objects

Solved!
When posting an update to Facebook through their API, were occasionally getting

Application response error img objects must have valid 'src' and 'href' attributes. You can see this because you are one of the developers of the app.

Facebook doesn't like % in URLs

-4
This took some time to debug: apparently Facebook doesn't like percent-encoded URLs, so if you sent it some feed template code that looks like

{ "body":"blah blah", "images":[{ "src":"http://img.awsomeness.com/8484%2B9087453jpg", "href":"http://awsomeness.com" }], }

it will complain about the percent-encoded "+" in the img src. You can easily unescape in ruby:

>> URI.unescape("http://img.awsomeness.com/8484%2B9087453jpg") => "http://img.awsomeness.com/8484+9087453jpg"

Think you've got a better solution? Help 148c663fd665c53518538e093ce3c2ab_small kueda out by posting your solution