• Hi, when i post on facebook the image shown is a wordpress logo or two random images- not the brand from my website..

    I was advised to post some code in the asme place as google analytics tracking code and still no change…

    I am hoping someone has had this problem and know a 2 second fix- been driving me nuts for days…

    Code is this for both GA and image call up….

    <script>
      (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
      (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
      m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
      })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
    
      ga('create', 'UA-41119714-1', 'auto');
      ga('send', 'pageview');
    
    <script type="application/ld+json">
    ? ? {
    ? ? ? "@context": "https://schema.org",
    ? ? ? "@type": “Luke Woods Photo”,
    ? ? ? "url": "https://www.luke-woods.com",
    ? ? ? "logo": "https://luke-woods.com/wp-content/uploads/2014/12/lwp32.png"
    ? ? }
    
    </script>
    
    ? ?
    <script type="application/ld+json">
    ? ? {
    ? ? ? "@context": "https://schema.org",
    ? ? ? "@type": “Luke Woods Photo”,
    ? ? ? "url": "https://www.luke-woods.com",
    ? ? ? "logo": "https://luke-woods.com/wp-content/uploads/2014/12/lwp32.png"
    ? ? }
    ? ? </script>

    Thanks in advance. Luke

Viewing 1 replies (of 1 total)
  • chrisfromthelc

    (@chrisfromthelc)

    Luke,

    What you should seek out is an Opengraph plugin. The code you have there is not for Facebook. Opengraph is what Facebook uses to pull that data, otherwise, it tries to determine that from HTML tags.

Viewing 1 replies (of 1 total)
  • The topic ‘WP site brand not showing in FB posts…’ is closed to new replies.