new-day-international / reddit

New Day fork of the code that powers reddit.com
Other
3 stars 1 forks source link

Producing Good Looking Links to Lightnet on Facebook #140

Open memetic007 opened 10 years ago

memetic007 commented 10 years ago

Links to many web sources on Facebook produce nice headlines and graphics embedded in the Facebook comment or item. Lightnet produces a plain-jane link.

What do we need to do to get good looking Facebook links?

see attached

lightnetlinksonfacebook

inflector commented 10 years ago

It can't pull in graphics when the page doesn't have them.

My guess is that they don't do anything special when the page doesn't have graphics. They may also be special-casing the higher traffic news sites. What happens when you link to a very low traffic blog?

memetic007 commented 10 years ago

here is a test link to the EP site .. it worked, but pulled an image not visible on the site....

eplinkfromfacebook

inflector commented 10 years ago

That graphic is coming up because the source has an "og:image" tag associated with a graphic:

See this article: http://www.gravitationalfx.com/how-to-make-facebook-use-a-custom-thumbnail-image-for-your-website/

It has some pointers for how to get Facebook to pick up a specific thumbnail.

ffunch commented 10 years ago

Related to this, it would make sense for us to support oEmbed. http://oembed.com/. Facebook seemingly isn't using it, but lots of other sites are. Plus, the other way around, it is very handy for being able to produce intelligent previews like Facebook does, in case we want to do that for posted links.