Please log into your user account or create a new one

Solution for: #64: facebook feed update complains about img objects

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

   1  {
   2    "body":"blah blah",
   3    "images":[{
   4      "src":"http://img.awsomeness.com/8484%2B9087453jpg",
   5      "href":"http://awsomeness.com"
   6    }],
   7  }


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

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