# Sharing links on Facebook doesn't get the title of topic in RTL languages

**URL:** https://meta.discourse.org/t/sharing-links-on-facebook-doesnt-get-the-title-of-topic-in-rtl-languages/35852
**Category:** Bug
**Created:** [20 Noviembre, 2015 19:29 UTC](https://meta.discourse.org/t/sharing-links-on-facebook-doesnt-get-the-title-of-topic-in-rtl-languages/35852 "2015-11-20T19:29:07Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Aymane\_Shuichi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/aymane_shuichi/32/63024_2.png) [@Aymane\_Shuichi](https://meta.discourse.org/u/Aymane_Shuichi)
#### Post date: [20 Noviembre, 2015 19:29 UTC](https://meta.discourse.org/t/sharing-links-on-facebook-doesnt-get-the-title-of-topic-in-rtl-languages/35852/1 "2015-11-20T19:29:07Z")

</div>

Hi,

I’m trying to share links from [here](http://www.manga-sekai.com), on Facebook. But I don’t get the correct data to show up on Facebook before posting, unlike links from this very forum.

Is this problem related to [this](https://meta.discourse.org/t/arabic-topic-titles-dont-show-up-in-urls/35766/1) ?

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [21 Noviembre, 2015 03:02 UTC](https://meta.discourse.org/t/sharing-links-on-facebook-doesnt-get-the-title-of-topic-in-rtl-languages/35852/2 "2015-11-21T03:02:36Z")

</div>

I don’t think the problem is RTL. It might have something to do with the locale though. I just tried sharing a post to Facebook from my forum and found that it didn’t work. The problem for me was that I was using a plugin that tries to read the Accept-Language header from the request. It seems that when Facebook scrapes the data they don’t set the Accept-Language request header. This was causing an error with the request. When I disabled the plugin Facebook was able to scrape the data again.

I then tried setting my forum’s locale to ‘ar’ and made a post in Arabic (I don’t speak Arabic so it was just random letters and a picture 🙂 ) Facebook was able to scrape the data without any problem.

You can test posts here [https://developers.facebook.com/tools/debug/og/object/](https://developers.facebook.com/tools/debug/og/object/) to see what information Facebook is getting.

---

<div class="post-metadata">

### Author: ![Aymane\_Shuichi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/aymane_shuichi/32/63024_2.png) [@Aymane\_Shuichi](https://meta.discourse.org/u/Aymane_Shuichi)
#### Post date: [21 Noviembre, 2015 10:40 UTC](https://meta.discourse.org/t/sharing-links-on-facebook-doesnt-get-the-title-of-topic-in-rtl-languages/35852/3 "2015-11-21T10:40:30Z")

</div>

Ok the only difference I’m seeing between my site & Discourse is the following:

Inside a topic page I have :  
`<meta property="og:url" content="http://www.manga-sekai.com/" />`  
When Discourse has this :  
`<meta property="og:url" content="https://meta.discourse.org/t/sharing-links-on-facebook-doesnt-get-the-title-of-topic-in-rtl-languages/35852/2" />`

og:url tells Facebook to scrap exactly this url. How do I get the meta dynamic ? Any idea?

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [21 Noviembre, 2015 16:35 UTC](https://meta.discourse.org/t/sharing-links-on-facebook-doesnt-get-the-title-of-topic-in-rtl-languages/35852/4 "2015-11-21T16:35:29Z")

</div>

I have no idea, but that looks like the problem. When I change my locale to ‘ar’ and make a post the url structure I get is `http://forum.testeleven.com/t/topic/30`. It leaves the title out of the url but that’s ok.
