Thank you for the module.

I have faced an issue with Instagram - it returns null when trying to get the information about the item with the specified "maxheight" parameter. It is explicitly described on http://instagram.com/developer/embedding/

So it should be fixed. In the meantime I have just used a hook to modify the request parameters:

/**
 * Implements hook_media_oembed_request_alter().
 */
function MYMODULE_media_oembed_request_alter(&$parameters, &$provider, $url) {
  if ($provider['name'] == 'default:instagram') {
    // Instagram doesn't allow to send the maxheight parameter. See http://instagram.com/developer/embedding/
    unset($parameters['maxheight']);
  }
}

Thanks
AndyB

Comments

devin carlson’s picture

Version: 7.x-2.1 » 7.x-2.x-dev
Status: Active » Fixed

Thanks for the suggestion!

Committed to Media: oEmbed 7.x-2.x

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.