upload icon indicating copy to clipboard operation
upload copied to clipboard

Image embed in social media

Open MeowMeowVenom opened this issue 2 years ago • 4 comments

Feature Request

Is your feature request related to a problem? Please describe. Yes

A clear and concise description of what the problem is. eg. I have an issue when [...] The image doesn't get embedded when sharing the post in social media

Describe the solution you'd like

A detailed description of your proposed solution. Include:

  • How the feature would work/behave
  • Any potential drawbacks
  • Maybe a screenshot, design, or example code

When uploading an image, fof upload does something like this based on template '//host.com/image'. But, because of this, when sharing the post on social media, the image doesn't show up in the embed. But adding https: to the link solves the issue

Describe alternatives you've considered

Manually add https: to links after uploading

A clear and concise description of any alternative solutions or features you've considered.

MeowMeowVenom avatar Sep 20 '21 06:09 MeowMeowVenom

Which adapter/template are you using? From what I remember Upload should always use fully qualified URLs in the content.

Which social media can we experience this on? You mean when one image from the post is picked up as the OpenGraph default image, or some kind of rich embed like Discord where the actual post content could be rendered including formatting?

clarkwinkelmann avatar Sep 21 '21 02:09 clarkwinkelmann

I get this issue with all templates. I tried sharing image on telegram and discord. Adding https solves this issue But, it would be nice to have that in the template.

By embed, I mean the preview that you get, by just sharing a link on any social media.

MeowMeowVenom avatar Sep 21 '21 02:09 MeowMeowVenom

If you have some time, then try making your own custom template.

https://github.com/FriendsOfFlarum/upload/wiki/Custom-Templates

SuperSecureHuman avatar Sep 28 '21 03:09 SuperSecureHuman

Yeah, suggested that to my friend, who does better php. Thx for that suggestion!

MeowMeowVenom avatar Sep 28 '21 04:09 MeowMeowVenom