opengraph/twittercard previews #5
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
noticed this too just now, if no one else will I can look into it
I can always look into it. Been trying to come up with a game plan to test and develop these previews because it is relatively speaking not easy to do with a basic
localhostdeployment. There's no tools to my knowledge to just test the way a link will look just in an IDE or whatever. For Facebook, we'd have to use their Sharing Debugger, which requires a Facebook account. For Twitter and Discord, we'd have to make test posts with the links in them.One idea I had was to deploy my development environment and test it out over localtunnel but I'm not sure if that's really ideal. If anyone has other ideas or info on testing OG and Twitter card previews, lmk.
Well… Pleroma supports OpenGraph so basics tests can be done with it.
Otherwise, Facebook/Discord/Twitter/… should have proper documentation somewhere about what they expect.
Ok. So, I looked into it. Our biggest friend will probably be documentation and perhaps checking on tools like OpenGraph.xyz. The framework you have currently is pretty solid for changing titles for certain pages and articles. The only improvements I can identify are figuring out using the image tags in the markdown to over-ride the OpenGraph site-wide meta tags and maybe making the
og:typebearticlefor blog posts and announcements. See this site for more info on OpenGraph spec: https://ogp.meOtherwise, it probably should be good. Twitter cards will first check for Twitter-specific meta tags and then fall back on OpenGraph. So, we shouldn't have to worry too much about that. https://developer.twitter.com/en/docs/twitter-for-websites/cards/guides/getting-started
For overriding OG-Images you can probably do it like this: