• Hi there.
    i would have one question left please. I have problems when sharing an add on facebook or somewhere else.
    The add image is not shown when shared. I tried the FB debugger already, but no way as you can see here:

    Facebook debugger

    The image what is shown is the favicon of the site and not the add image.
    Any idea what i could do?

    Thank you very much in advance!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter computermobil

    (@computermobil)

    Sorry friends, worng link above:
    Facebook debugger

    Plugin Author Greg Winiarski

    (@gwin)

    Hi,
    to have an image from the Ad gallery shown when sharing an Ad on FB, the image needs to be marked as featured.

    To do that you would need to:

    1. enable featured images for WPAdverts by default they are disabled, you can do that by adding the code below in your theme functions.php file

    
    add_action("adverts_post_type", "customize_adverts_post_type");
    function customize_adverts_post_type( $args ) {
       $args["supports"][] = "thumbnail";
       return $args;
    }
    

    2. now in the Ad gallery, click pencil (edit) icon, a new modal window will open, check the “Use this image as main image” checkbox and save.

    When sharing an Advert the image you selected as main image should be then shown on FB.

    If you want all Ads that are being added to have a featured image selected by default you can install a Force Featured Image snippet https://github.com/simpliko/wpadverts-snippets/blob/master/force-featured-image/force-featured-image.php

    How to install the snippet you can read here https://github.com/simpliko/wpadverts-snippets/ at the bottom of the page.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Shared image on FB and Twitter’ is closed to new replies.