Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #715511

    Paul R
    Moderator

    Hi Craig,

    Sorry about that.

    Please replace the code with this.

    
    add_action( 'wp_head', 'x_summary_large_image' );
    function x_summary_large_image(){
      global $post;
     
      ?>
      <meta name="twitter:image:src" content="<?php echo wp_get_attachment_url( get_post_thumbnail_id($post->ID) ); ?>" />
      <?php
    }
    

    Hope that helps.

    #715853

    Craig D
    Participant

    That is no longer causing the page to break – but has no effect on the social share twitter button it still displays the same share content as before…

    Your login is still active 😉

    Best

    Craig

    #716257

    Rad
    Moderator

    Hi Craig,

    It’s best to consult it to twitter developer or community. Unlike facebook, twitter has no linter tool to clear it’s sharing information. It’s probably different from facebook. And that something I can’t answer since the data that twitter requires is fully available.

    Even if we do log in and do some changes at your site, it will still do nothing if twitter refuse to display it.

    Thanks for understanding.

    #716393

    Craig D
    Participant

    Sorry

    But This is not correct – You know this and so do we – We have proven that Cornerstone social sharing is not working with respect to Twitter…and the cornerstone is not collecting the twitter meta data…

    Best 🙂

    Craig

    #716677

    Rad
    Moderator

    Hi Craig,

    Nope, it doesn’t work like that. Cornerstone or any sharing button will not collect any meta information. Sharing button will only forward the URL to social media, and it’s them (social server) that will fetch it. It’s almost the same as adding keywords to your site so google could fetch and use it. Similar to schema or microformats, they are data that other site could see from your site.

    If there is sharing button that collects information, then there is no need to add meta on top of your site’s <head>, because it can simply upload that information to a social server. But it’s not, because social sharing doesn’t work like that.

    You can get the second opinion to any developer 🙂 , or even twitter community.

    Check this https://dev.twitter.com/web/tweet-button , it’s the same implementation as our twitter button has. But it also said that “A Twitter Card may be appear for a shared URL.”. That means, it may or may not share your card depending on your twitter setup.

    It’s actually just URL https://twitter.com/intent/tweet?text=Hello%20world&url=http://domain.com/, you don’t even need a button. But for the sake of matching the theme, we styled it our way. It’s basically just the same URL sharing as provided by twitter.

    Again, it’s best to consult it to twitter community or developer.

    By the way, could you provide a URL that has twitter sharing button while having a card preview? As far as I know, a card will only display upon shared or tweeted. ( http://www.socialbakers.com/blog/649-twitter-to-tweet-more-interactive-content, there should be View Summary option to view the card after tweeting or sharing ). I tweeted your site and it’s true, I can view the card only after sharing, and by clicking View Summary option.

    Thanks.