# Is it right how Sendbird's server handles OpenGraph metadata?

**URL:** https://community.sendbird.com/t/is-it-right-how-sendbirds-server-handles-opengraph-metadata/1217
**Category:** Show & Tell
**Created:** [October 30, 2020, 7:04am UTC](https://community.sendbird.com/t/is-it-right-how-sendbirds-server-handles-opengraph-metadata/1217 "2020-10-30T07:04:28Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![hmmhmmhm](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/hmmhmmhm/32/650_2.png) [@hmmhmmhm](https://community.sendbird.com/u/hmmhmmhm)
#### Post date: [October 30, 2020, 7:04am UTC](https://community.sendbird.com/t/is-it-right-how-sendbirds-server-handles-opengraph-metadata/1217/1 "2020-10-30T07:04:28Z")

</div>

![스크린샷 2020-10-30 오후 3.28.20](https://us1.discourse-cdn.com/flex020/uploads/sendbird/original/1X/e50d4df86c519abd0e8b976a39292f0074f7531c.png)

Currently sendbird checks the og informationon the sendbird server when a link is detected and adds it to an existing user message.  
How about creating a new message and paste it there og metadata, without adding og metadata to the user’s existing message when processing the message?

---

<div class="post-metadata">

### Author: ![Cjeon](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/cjeon/32/222_2.png) [@Cjeon](https://community.sendbird.com/u/Cjeon)
#### Post date: [October 30, 2020, 2:30pm UTC](https://community.sendbird.com/t/is-it-right-how-sendbirds-server-handles-opengraph-metadata/1217/2 "2020-10-30T14:30:44Z")

</div>

Hi @hmmhmmhm, thank you for reaching out to us! And thank you for your suggestion, too. I will share this with the team. Can I ask you for some details on it so that we could understand it better?

As-is:  
When a message contains a url, the sendbird server attaches OG metadata to it. Like {message: “[https://google.com](https://google.com)”, ogdata: “…”}

my understanding of your suggestion:  
When a message contains a url, send a new, empty message with only OG metadata in it. Like  
message 1: {message: “[https://google.com](https://google.com)” , … }  
message 2: {message: null, ogdata: “…”}

What problem did you face when you used current OG data implementation? I’m asking this to make sure that we understand your pain point correctly so that we could come up with correct solution.  
It would be amazing if you please could give us some examples. For example, to do xyz, our current way takes 5 steps, but with your suggestion, it would only take 3 steps … something like this will be really helpful.

But not necessary, though, so no pressure.

Thank you again for reaching out, and I’ll share this with my team 👍

---

<div class="post-metadata">

### Author: ![hmmhmmhm](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/hmmhmmhm/32/650_2.png) [@hmmhmmhm](https://community.sendbird.com/u/hmmhmmhm)
#### Post date: [October 30, 2020, 3:13pm UTC](https://community.sendbird.com/t/is-it-right-how-sendbirds-server-handles-opengraph-metadata/1217/3 "2020-10-30T15:13:34Z")

</div>

@Cjeon  
Thank you for your quick reply. 😊

As is currently implemented in sendbird-uikit, the title of OG message comes from the user’s text.  
However, the most SNS apps separate of OG thumbnail from the user’s message.

 ![스크린샷 2020-10-31 오전 12.09.51](https://us1.discourse-cdn.com/flex020/uploads/sendbird/original/1X/59042fec4a6da55aadc3b7868e3d86dfd23dd759.jpeg)

The image on the left is kakaotalk app, and the image on the right is sendbird web. as you can see the sendbird is not separating the OG thumbnail from the user’s message, it may cause confusion or further problems.

---

<div class="post-metadata">

### Author: ![Cjeon](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/cjeon/32/222_2.png) [@Cjeon](https://community.sendbird.com/u/Cjeon)
#### Post date: [October 30, 2020, 3:26pm UTC](https://community.sendbird.com/t/is-it-right-how-sendbirds-server-handles-opengraph-metadata/1217/4 "2020-10-30T15:26:03Z")

</div>

Oh I got it. Then it is a design improvement rather than a data structure improvement, right? I’ll share this with the design team and the sample team. Thank you for the clarification! 🙇‍♂️‍♂

---

<div class="post-metadata">

### Author: ![hmmhmmhm](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/hmmhmmhm/32/650_2.png) [@hmmhmmhm](https://community.sendbird.com/u/hmmhmmhm)
#### Post date: [October 30, 2020, 3:35pm UTC](https://community.sendbird.com/t/is-it-right-how-sendbirds-server-handles-opengraph-metadata/1217/5 "2020-10-30T15:35:06Z")

</div>

Hmmmm…🤔 Well… actually I’m not sure if it’s right to change the design.  
I think the UI design is perfect, it would be better to treat metadata as a separate message.  
The UI design that makes one message like two… could be a disaster in terms of management.

🤔A Developer: I thought it was one message, but what if it’s two message…?  
🤔B Developer: I thought there were two message, but what if there was one message…?

I feel like I’m already confused…

---

<div class="post-metadata">

### Author: ![Cjeon](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/cjeon/32/222_2.png) [@Cjeon](https://community.sendbird.com/u/Cjeon)
#### Post date: [October 30, 2020, 3:59pm UTC](https://community.sendbird.com/t/is-it-right-how-sendbirds-server-handles-opengraph-metadata/1217/6 "2020-10-30T15:59:07Z")

</div>

I think that makes sense. Sorry for the misunderstanding. Separate message, separate UI.

I will share this with my team, but I wonder, does OG tag usually operate like separate messages? I’m purely asking because I don’t really know much about them. If OG tags are separate messages, can we usually reply to them, or share them independently from the original message that contains the url for it? Or if the original message was deleted or edited, does the OG tag message stay?

If you feel pressured you don’t have to answer them. I just wrote them to let you know what are the points that I’m currently considering. The main point would be

> do people perceive OG tag and message as **independent** objects?

Thank you so much for sharing your nice thoughts on this, and replying to me! 😁

---

<div class="post-metadata">

### Author: ![Doo\_Rim](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/doo_rim/32/239_2.png) [@Doo\_Rim](https://community.sendbird.com/u/Doo_Rim)
#### Post date: [November 2, 2020, 1:37am UTC](https://community.sendbird.com/t/is-it-right-how-sendbirds-server-handles-opengraph-metadata/1217/7 "2020-11-02T01:37:29Z")

</div>

Hi, @hmmhmmhm  
I am UIKit developer on Android.

As far as you know, OG data is generated from the message text. Therefore, In the view of Data, What the message includes OG data is more effective and easy to understand. If you want to use our UIKit with a different UI, you can customize the message UI.

> **[Key Functions | UIKit Android SDK | Sendbird Docs](https://sendbird.com/docs/uikit/v1/android/guides/key-functions#3-chat-in-a-channel)**
>
> This page explains key functions of Sendbird UIKit for Android consisting of how to create a channel, list channels, invite users, chat in a channel, configure channel settings, moderate a channel, and list channel members.
