# 私人Discourse的OpenGraph元数据

**URL:** https://meta.discourse.org/t/opengraph-metadata-for-a-private-discourse/52440
**Category:** Support
**Created:** [2016年十一月3日 13:21 UTC](https://meta.discourse.org/t/opengraph-metadata-for-a-private-discourse/52440 "2016-11-03T13:21:17Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![alehandrof](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alehandrof/32/119526_2.png) [@alehandrof](https://meta.discourse.org/u/alehandrof)
#### Post date: [2016年十一月3日 13:21 UTC](https://meta.discourse.org/t/opengraph-metadata-for-a-private-discourse/52440/1 "2016-11-03T13:21:18Z")

</div>

Our Discourse site is private (requires login to access) and has SSO enabled, so non-logged in users visiting it are redirected to our main site’s login page.

Unfortunately this means that links to our site look like this when shared on our private group in Facebook:

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

I’d like to be able to add an icon and change the title and description to be something friendlier like:

[ICON] **AMICAL Connect - the consortium’s forum**  
Login to access this post.

* * *

Is this possible?

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [2016年十一月3日 14:32 UTC](https://meta.discourse.org/t/opengraph-metadata-for-a-private-discourse/52440/2 "2016-11-03T14:32:34Z")

</div>

This means that you need to put the opengraph tags in the SSO page you control, right?

---

<div class="post-metadata">

### Author: ![alehandrof](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alehandrof/32/119526_2.png) [@alehandrof](https://meta.discourse.org/u/alehandrof)
#### Post date: [2016年十一月3日 15:11 UTC](https://meta.discourse.org/t/opengraph-metadata-for-a-private-discourse/52440/3 "2016-11-03T15:11:17Z")

</div>

![](https://global.discourse-cdn.com/meta/original/3X/a/b/ab4ba6f175145786f030a42be1c84e9467ffb483.gif)

Thank you, kind sir!

I thought it was coming from Discourse. But, obviously, I’m a doofus.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [2024年六月8日 12:45 UTC](https://meta.discourse.org/t/opengraph-metadata-for-a-private-discourse/52440/4 "2024-06-08T12:45:16Z")

</div>

此主题已在 2773 天后自动关闭。不再允许回复。
