Facebook default image
-
Hi,
Are there plans for adding a default Facebook image in the settings, if no image is present in a post or page?
PS: Awesome plugin ??
Regards,
Christophe
-
I’d be interested in this too, please. For Twitter as well if possible
Hi Christophe,
This has actually been the first thing I designed when making the og:image work ??
Here’s the places where the og:image is fetched from, in order:
1. Featured Image
2. Site Icon (from Customizer)
3. Header Image (theme dependent)
4. WPMUdev Avatars site avatarWhen on a product page of WooCommerce, extra images will be added from the Product Gallery ??
I might expand this in the future, but that’s it for now.
I hope this helps! Let me know if you have any other questions! ??
Hi Sybre,
Thanks a lot for the awesome info.
I know that the featured image works for Facebook with your plugin, and it works good!One more thing…
Your ‘Facebook sharing image solution’ works a lot better then the Yoast SEO-plugin.I really love your plugin ??
Keep up the good work ??
Regards,
ChristopheThanks and anytime Christophe ??
@natcornadmin I missed your comment, so here’s the answer regarding Twitter:
og:image
andtwitter:image:src
use exactly the same URL in The SEO Framework. When on a WooCommerce Product page, only the non-gallery image will be the same.Extra info:
Twitter uses the Open Graph image if notwitter:image:src
is available. This means that when Twitter tags are disabled, but Open Graph tags are, the Twitter card can still be generated.
See https://dev.twitter.com/cards/getting-started#opengraph for more information, this explains that some Twitter Metatags are actually redundant when also using Open Graph.I’m marking this topic as resolved, feel free to ask any other questions if you have them ?? Thanks and have a great day!
Ok Sybre, no problem ??
Hi guys,
FYI, I’m going to change the order in the next update, including two filters to set a fallback image:
Before: 0. Defaults override filter 1. Featured Image 2. Site Icon (from Customizer) 3. Header Image (theme dependent) 4. WPMUdev Avatars site avatar
2.5.2: 0. Defaults override filter 1. Featured Image 2. Fallback filter 1 3. Header Image (theme dependent) 4. Fallback filter 2 5. Site Icon (from Customizer) 6. WPMUdev Avatars site avatar
More information will be provided when it’s due.
Thanks and have a great day!
Thats great ??
Thanks for the info Sybre.Christophe
Hi there!
The filters are below, as promised, and will work from The SEO Framework 2.5.2 and later.
No need to escape the URL’s, The SEO Framework will do that.
Filter names:
the_seo_framework_og_image_after_featured //fallback filter 1 the_seo_framework_og_image_after_header //fallback filter 2
Example usage:
add_filter( 'the_seo_framework_og_image_after_featured', 'my_after_featured_image_url' ); function my_after_featured_image_url() { return 'https://example.com/path/to/my/image.jpg'; }
Best practices: https://developers.facebook.com/docs/sharing/best-practices#images
Min size: 200px * 200px
Max size: 1500px * 1500px (I lost reference on max size… probably showed up in debugger)Let me know if you have any further questions!
Thanks and have a great day ??
Ok,
Thanks!
Regards,
ChristopheHello Sybre,
First of all, thanks for this amazing plugin. I was using Yoast and had plenty of problems. Yours is working perfectly! The one thing I am having problems with right now is the facebook image. I understand by reading this thread that the plugin fetches the featured image first, and secondly the site icon. While I was using Yoast there was no need to use featured image, so when I started using SEO Framework I had no featured images in my pages whatsoever. I started using this feature, but sometimes it just doesn’t work and keep showing the site icon. I wonder if it is just a matter of waiting a couple of days or something else?
Regards,
DiegoHi Deigo,
Good question!
At first, this plugin is always falling back on default WordPress behavior, so it’s like it’s not even active… just doing what you’re supposed to do and The SEO Framework conforms and helps search engines better understand your website :).
With every post you publish, a default image has to be set to conform to the blog standard. This is why The SEO Framework falls back on it.
So, now when the basis of this plugin has been laid out, I have room for expansion.
Your request is certainly a feature to be considered, with at least there being a the global fallback image to be set within the SEO Settings page.Alas, the featured image will stay and is recommended to be used as I do not want to clutter the dashboard with upload areas and difficult or redundant settings (i.e. why use featured image AND a special image uploaded?).
Through an extension plugin I will add redundant features like these, but I have yet to get started on extensions. I will keep you guys posted on the progress of this. But first: version 2.5.2 is to be released, with over 100 changes, after the final bugs have been ironed out.
I hope this clarifies a lot on what you are asking.
Please keep in mind that this plugin is still very new and I need to set priorities.Thanks and have a great day!
Hi Diego,
I missed the following question:
I started using this feature, but sometimes it just doesn’t work and keep showing the site icon. I wonder if it is just a matter of waiting a couple of days or something else?
If you have object cache available this should definitely be cleared. If this is not the case, please provide more information regarding the issue (in a new topic, please). Thanks! ??
Hi guys,
2.5.2 has just been released and all filters have therefore been put into effect.
A default image uploader is to be planned, no ETA yet. So the filters will have to do for now :).
P.S. I’m sorry Diego for my sloppy first reply towards you, I was really tired (and even misspelled your named!) ??
Ok,
Awesome Sybre!!!
Regards,
ChristopheHi Sybre,
No problem at all :). It was just as you said, it had nothing to do with your plugin. I solved it with the facebook debugger. Thanks for the quick response!
Regards,
Diego
- The topic ‘Facebook default image’ is closed to new replies.