Viewing 5 replies - 1 through 5 (of 5 total)
  • I have being with the same pobelm

    You just need to add this line themes functions.php file an ou work will be done

    Also add this Plugin
    “Facebook Open Graph, Google+ and Twitter Card Tags”

    function HARIMAY_save_post_callback( $post_id, $post, $update ) {
    
        $slug = 'post';
        if( $slug == $post->post_type ){
    
        	$http = new WP_Http();
    
            $response = $http->post( 'https://developers.facebook.com/tools/debug/sharing/?q='.get_permalink( $post_id ) , array( 'timeout' => 50 ) );
    
            $response = $http->post( 'https://developers.facebook.com/tools/debug/sharing/?q='.get_permalink( $post_id ) , array( 'timeout' => 50 ) );
    
            $response = $http->post( 'https://developers.facebook.com/tools/debug/sharing/?q='.get_permalink( $post_id ) , array( 'timeout' => 50 ) );
    
        }
    }
    add_action( 'save_post', 'HARIMAY_save_post_callback', 10, 3 );

    Hope you Problem will get solved with this

    Well you have more serious issues than that – I went to your site using the link above, and tried clicking on a post to get to a single post page to look at your source code, but none of your post links seem to work – I couldn’t get past your home page to view any posts.

    Regarding the problem you posted here about, the issue is with Facebook, not WordPress.

    On individual posts, the code in the head section should contain OpenGraph tags, this is what tells social media sites, including Facebook, what information to use when you post a link, including what image to pull from the post.

    There is a lot of information available by Googling OpenGraph, but the easiest way to make sure your site is using it is to find a social sharing plugin that adds the OG tags to each post.

    Facebook has gotten quite strict about this now – no OpenGraph tags, no images will get pulled….

    Thread Starter mamamad

    (@mamamad)

    Oh understood about the tag. But I don’t understand about the nav links. I’ve been talking to goDaddy about how long pages to load (internally). But others who checked, say its fine. Now I know why I have gotten no traffic. I don’t have a problem navigating though from admin pages. ?

    Thanks

    Thread Starter mamamad

    (@mamamad)

    TrishaM
    Thanks for help. However, I just checked my nav links and all seem to be working. When I go as a visitor, they still work. A friend checked, and worked for her. So I am confused. They are slow though, and goDaddy says they’re fine, as does the friend.

    OK I took another look today, and yes the posts do load, but phenomenally slow…..perhaps yesterday it was even slower, and my browser simply timed out and didn’t load them.

    AND that may or may not be the server’s fault – there are a lot of variables, including my own internet service, but if you want to look at that issue further, Google has several good tools to test page load speed and recommend optimizations you can make.

    Back to your OG tags……I looked at several posts – most had featured images and one I looked at did not (“what you didn’t know you didn’t want to know”), so on the ones that didn’t the OG tag for ‘image’ was empty.

    Is it possible that you were trying to post on Facebook a blog post that just didn’t have a featured image?

    If that’s not the problem – if you’re certain that the blog post you’re trying to post on FB does indeed have a featured image, then try using this facebook tool that tests and helps you debug your opengraph tag settings.

    https://developers.facebook.com/tools/debug/

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘preview when sharing link’ is closed to new replies.