modified opengraph lib to be provided with an external domdocument