Problem/Motivation

This issue is being filed to identify that the method being utilized to retrieve urls to be used as the parameter for og:image causes compatibility issues with the Facebook Graph Scraper. For example, http://static2.dmcdn.net/static/video/473/418/48814374:jpeg_preview_larg... will change to http://static2.dmcdn.net/static/video/473/418/48814374%3Ajpeg_preview_la..., which the Facebook Graph Parser will interpret as http://static2.dmcdn.net/static/video/473/418/48814374\u00253Ajpeg_preview_large.jpg?20120826053041, and when rendered by most browsers will be represented as http://static2.dmcdn.net/static/video/473/418/48814374/u00253Ajpeg_previ..., an invalid URL. Utilized https://developers.facebook.com/tools/debug to discover whether or not you are affected

Proposed resolution

In "private function get_og_tag_defaults($node = NULL, $full_view = FALSE)" of opengraph_meta.common.inc, change $ret[self::IMAGE] = $i['url']; to $ret[self::IMAGE] = rawurldecode($i['url']); to fix issues related to colons, etc. Other characters will require a different method and is not covered in this resolution(For example, some situations will change a '+' to ' ' or a ' ' to '_').

Remaining tasks

If you are using this module, and the value specified for og:image is not being rendered on Facebook, this may be the root cause. Further review is suggested to confirm whether or not other special characters are affected as most of them are not utilized by the reporter of this issue.

User interface changes

No interface changes are required.

API changes

API changes not applicable

Original report by corporate@kedia.us