Okay
  Public Ticket #301757
opengraph issue
Closed

Comments

  • Jesse started the conversation

    My problem is Facebook does not display CDN content anymore.... what a mess. I use cloud files and I am trying to figure out how to how to filter the CDN content out and use the regular site path.

    Salient my question for you is I see you have already added open-graph options but when I disable open-graph on WP-SEO yours doesn't show up?

    Also what if I do get it to show up do you have a custom filter that will allow me to change my CDN path to the regular site path?

    I know that really the following is no a question for you but to give you an idea of my hurdle here:

    Why does this filter not work?

    It doesn't work probably because it is a CDN thing - but you think it would. The thing that sucks is Facebook does not show CDN in content and there is no way to change the go:image back to the not CDN url. why? I mean if I change the url manually in the SEO box to http://asdf.com and then use the filter to change it from http to https the filter works fine but with this CDN no luck.

    add_filter( 'wpseo_opengraph_image', 'wpseo_cdn_filter' );

    function wpseo_cdn_filter($uri) {

    return str_replace( 'http://328984a1363d30714de3-dc89c0a2c842806228c703007fb513c6.r70.cf5.rackcdn.com/wp-content/uploads/', 'http://ccroanoke.com/wp-content/uploads/', $uri );

    }

    any help will be appreciated

  •  1,071
    ThemeNectar replied

    Hey, the Salient specific og tags that are added occur in the functions.php file through this action at the bottom 

    add_action( 'wp_head', 'add_opengraph', 5 );

    If you want that to tun regardless of the plugin active, delete the conditional arround it. Aside from that Salient shouldn't be preventing your filters from working with the plugin - have you had success using that filter when Salient is not active?

  • Jesse replied

    Thanks Nector - yes it is a w3 total cache issue - they need to figure out a way to preserve the go:image. The issue is that anything with the domain name and .jpg will be overwritten to CDN url.

    Hopefully they will fix - I don't know why Facebook has to be stupid like that.