-
Notifications
You must be signed in to change notification settings - Fork 18
Open Graph Meta Tags for facebook and others #436
Comments
(might go good together with #191) |
Hey @elbotho
What do you think? Are you fine with the temporary workaround? |
I thought I saw a function to get the first image in a post, but that might have been smth. else. I agree with 1. as a fallback, but would suggest a custom image that is big enough for fb to display it as big as possible. (i think it's at least 1200px width, but I could create that)
Ideally I'd like something like this: try to get (in this order) selected image, an image from the content, an image for the category or subject, or use the fallback image (1.) |
Let's go with 1. for now as the 5min solution. I'll send you a graphic soon |
would it be easy to find out which subject is active? than I could create nice subject graphics with the illustration from the new landing page. |
Hm, I don't know of any function like that...
Yes, I thinkt it is difficult, however not impossible. But fetching the image from the content of a different entity (like subject page) is even more difficult.
Yes, that's quite easy to find out. So we can take the illustrations and hardcode this, that shouldn't be a problem. Difficult is only fetching an image from a entity content. |
So we go with this:
sounds good? |
Yes, perfect :) thank you! |
I have drafts for graphics, will post for discussion on slack |
Zip File: |
Thank you. Is the 4th the general fallback? |
Sorry, |
ok, step one works! (just default image) 👍 |
quick check:
|
Closed in #678 |
Test case
Share a link to Serlo on Facebook.
Title and text are alright, but the embedded image comes from the "Horizont"
Open Graph Meta Tags would easily solve this and would make more ppl. click on Serlo-Links.
Ressources
http://davidwalsh.name/facebook-meta-tags
https://developers.facebook.com/docs/sharing/best-practices
http://ogp.me/
Suggestion
I suggest to use the the header image of the current subject as a default
og:image
or use the first image from the content if it exists.Maybe replace it with an
og:video
if there's a video as well.I'd also be willing to work on this suggestions if it helps.
The text was updated successfully, but these errors were encountered: