Viewing 8 replies - 1 through 8 (of 8 total)
  • Theme Author acosmin

    (@acosmin)

    I am sorry but I can’t offer support for 3rd party plugins. You can check with the plugin developer.

    Thread Starter yard

    (@yard)

    Hello acosmin,

    yes I understand your reaction, but this problem is not dependent with 3D party plugins. Problem appear too when I am trying copy and paste url link directly into facebook.

    http://screencast.com/t/jBwbbgylY

    Theme Author acosmin

    (@acosmin)

    Try reading these docs:
    https://developers.facebook.com/docs/plugins/checklist
    https://developers.facebook.com/docs/sharing/reference/share-dialog

    From what I gather you need to add og:image somewhere in header.php.

    So open header.php and bellow:
    <meta name="viewport" content="width=device-width, initial-scale=1" />

    add:

    <?php
       if( is_single() ) {
             $thumb_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full' );
             echo '<meta property="og:image" content="' . $thumb_url . '" />';
       }
    ?>

    Thread Starter yard

    (@yard)

    I am sorry but no change after this. Still is inserting no proper image and text content from grabbed url:

    http://screencast.com/t/6LjYi3Ue6

    here is fb debugger:

    http://screencast.com/t/VXpWDMwc6X14

    <!DOCTYPE html>
    <html lang="sk-SK" itemscope itemtype="http://schema.org/Article" prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb#">
    <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- ***** VLOZENA UPRAVA KODU PRE LEPSI INSERTING NA FACEBOOK 2015-01-20  ***** --><meta property="og:image" content="Array">
    <!-- ***** END UPRAVA KODU PRE LEPSI INSERTING NA FACEBOOK 2015-01-20 *****  --><title>Cyklo-Santé MTB Krahule, 29.6.2014 | Centrum voľného času Kremnica</title>
    <link rel="pingback" href="http://cvc.kremnica.sk/xmlrpc.php">
    Thread Starter yard

    (@yard)

    Update:

    Now I am using webZunder Open Graph Plugin this give a little bit better results, but no ideal

    Theme Author acosmin

    (@acosmin)

    As I said this is not a theme related issue and also as a theme developer I am not allowed to include open graph meta tags (it won’t pass the review process because it’s “plugin territory”).

    You can either find a WP plugin that works or try to implement the tags manually (all the info is in those two links I posted above).

    Thread Starter yard

    (@yard)

    Dear acosmin,

    I understand and many thanks for previous suggestions. I don´t understand why any open graph wordpress plugins not resolving my problems, but if you mean that this is theme independent problem, than I will try find solution in other way. I must only exclude theme code from investigating at first step.

    Theme Author acosmin

    (@acosmin)

    It’s not a theme related issue. You need to know how to implement those og tags. I also don’t know what plugins you’ve tried, you should ask the plugin developer if it doesn’t work.

    Try adding these lines in functions.php:

    function ac_og_meta() {
    
    	if( is_single() ) {
    		$title = get_the_title();
    		$thumb = wp_get_attachment_url( get_post_thumbnail_id() );
    		echo '<meta property="og:image" content="' . $thumb . '" />';
    		echo '<meta property="og:title" content="' . $title . '" />';
    
    	}
    
    }
    add_action( 'wp_head', 'ac_og_meta', 1 );

    I am sorry but it’s the last time I answer on this subject. If you need professional help you can try: jobs.wordpress.net

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Facebook sharing button don´t acquire proper image from page’ is closed to new replies.