github-cards
github-cards copied to clipboard
social media preview image
Is there a way to use the social media preview image within the card in place of the the user profile image?
From what I've been able to find, you can get the social image URL from the GraphQL API but not the REST API (which is what this repo uses)
Another option would be to fetch the meta tags from the repo URL and get the social image url from the <meta property="og:image" ...> tag
I found the first bit - re: GraphQL API but then soon realised that this repo didn't seem to use that. Thanks for confirming.
Unsure how to do the second part - are the meta tags fetched/parsed currently for other stuff in this repo ?