# Lokale onebox-afbeeldingen ophalen

**URL:** <https://meta.discourse.org/t/fetching-onebox-images-locally/172344>\
**Category:** Development\
**Created:** [5 december 2020 om 19:08 UTC](https://meta.discourse.org/t/fetching-onebox-images-locally/172344 "2020-12-05T19:08:29Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)\
**Post date:** [5 december 2020 om 21:02 UTC](https://meta.discourse.org/t/fetching-onebox-images-locally/172344/2 "2020-12-05T21:02:24Z")

</div>

Onebox & Discourse will do this natively without any additional plugins.

You just have to make sure that the target website generates the appropriate og meta tags. If anything you need to be modifying the target website, not Discourse, if you want this to work.

E.g.:

> **[Brexit: UK-EU trade talks to resume over 'critical issues'](https://www.bbc.co.uk/news/uk-politics-55201085)**
>
> Negotiators will talk on Sunday, but "significant differences" between the two sides in post-Brexit trade talks remain.

 ![image](https://global.discourse-cdn.com/meta/original/3X/b/d/bd41a6de187f30afebc71a89da3f0a24a9d14c6b.png)

The BBC website generates those meta tags for each page. Discourse and onebox will pull in site\_name, image, description and title and generate the onebox.

Just make sure your target website is following that standard and you shouldn’t need to do anything else?

It makes sense to do that because then your website is covered for all previews on other platforms too, e.g. Facebook.

I’m assuming you have control of or influence over this website, however, which might be a big assumption!

If this is not possible you are going to have to create some bespoke engine in Onebox that can recognise the uniqueness of that website and crawl it for the appropriate meta data. The Nokogiri library is the appropriate tool for that job.

---

_[View the full topic](https://meta.discourse.org/t/fetching-onebox-images-locally/172344)._
