-
Notifications
You must be signed in to change notification settings - Fork 144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
og:image #89
Comments
This would need to be setup within your theme as the og:image tags need to be present within the |
@Serge15 this might be late but I had the same issue and used this code to pass the image to the template:- function onEnd() {
$_post = $this->components['blogPost'];
if ($_post->featured_images->first()) {
$this->page->og_image = $_post->featured_images->first()->path;
}
} Which will allow you to use this markup in your template:-
|
This ain't working anymore, anyone who has a better solution? |
Got an explanation of how it ain't working anymore @Hessel91? |
Well I get this error when I add the code to the blog post page. |
That's because of an error in your code. |
Thank you Luke for notice. It works perfectly now! |
Hello,
I am trying to setup the featured image as the og:image. How can this be done?
In the facebook debugger I can see the featured image in the post but once I share it, the shared image changes to the blog logo.
Thanks
The text was updated successfully, but these errors were encountered: