alexandersimoes / oec

The website powering the Observatory of Economic Complexity
atlas.media.mit.edu
157 stars 52 forks source link

Share Images not Working #30

Open davelandry opened 10 years ago

davelandry commented 10 years ago

I was not able to see a rendered tree map when trying to share this URL: http://atlas.media.mit.edu/explore/tree_map/hs/import/grc/ita/show/2011/

makmanalp commented 10 years ago

Interestingly 

<meta property="og:image" content="http://atlas.media.mit.edu/static/generated/en_explore_tree_map_hs_import_grc_ita_show_2011.png">

is there and the link works fine.

davelandry commented 10 years ago

It pre-populates the og:image tag before the image is actually rendered. The image only gets rendered when the user clicks to "share" the page.

makmanalp commented 10 years ago

So I found this: https://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fatlas.media.mit.edu%2Fexplore%2Ftree_map%2Fhs%2Fimport%2Fgrc%2Fita%2Fshow%2F2011%2F

makmanalp commented 10 years ago

On the first try it used to give the error "Provided og:image could not be downloaded or is not big enough. Please use an image that's at least 200x200px and is accessible from Facebook. Image 'http://i.creativecommons.org/l/by-sa/3.0/80x15.png' will be used instead." but now it doesn't.

Also this: http://ogp.spypixel.com/Pogo/checker/index.php?url=http%3A%2F%2Fatlas.media.mit.edu%2Fexplore%2Ftree_map%2Fhs%2Fimport%2Fgrc%2Fita%2Fshow%2F2011%2F