Results 1 to 6 of 6
  1. #1
    Join Date
    Mar 2010
    Location
    northern california coast
    Posts
    11
    Plugin Contributions
    0

    Default Where do I add facebook open graph tags?

    I've added a facebook like button to my main page and it's working fine. Now I have to add the Facebook open graph tags ... but I have no idea where to place them. I read somewhere that they should be addedf to the index.php file. I did that (placing them between appropriate html opening and closing tags, etc.) but it caused a server error when I tried to access my site. I read elsewhere that it should be placed in the common header tpl file, but that didn't work either.

    I've spent hours searching the forum for help on this, but I haven't found any info that relates. Any assistance would be very much appreciated.

  2. #2
    Join Date
    Aug 2005
    Location
    Vic, Oz
    Posts
    1,905
    Plugin Contributions
    5

    Default Re: Where do I add facebook open graph tags?

    Quote Originally Posted by surlybroad View Post
    I've added a facebook like button to my main page and it's working fine. Now I have to add the Facebook open graph tags ... but I have no idea where to place them. I read somewhere that they should be addedf to the index.php file. I did that (placing them between appropriate html opening and closing tags, etc.) but it caused a server error when I tried to access my site. I read elsewhere that it should be placed in the common header tpl file, but that didn't work either.

    I've spent hours searching the forum for help on this, but I haven't found any info that relates. Any assistance would be very much appreciated.
    Click the "Free Software Add Ons" up the top of this page
    You will find 4 or 5 mods there that maybe will give you inspiration.

    Also it depends on what you are trying to achieve
    For instance if you want each "product" to have a like button then you put the OG tags in
    \includes\templates\YOUR_TEMPLATE\common\html_header.php

  3. #3
    Join Date
    Mar 2010
    Location
    northern california coast
    Posts
    11
    Plugin Contributions
    0

    Default Re: Where do I add facebook open graph tags?

    I placed the FB like button on my main page. I'm not interested in having a like button on every product page.

    I looked through the software add-ons, but didn't see one that addressed this issue. I'll look again, but I'm not hopeful.

    Thanks.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,407
    Blog Entries
    7
    Plugin Contributions
    81

    Default Re: Where do I add facebook open graph tags?

    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Mar 2010
    Location
    northern california coast
    Posts
    11
    Plugin Contributions
    0

    Default Re: Where do I add facebook open graph tags?

    Thank you, Dr. Byte.
    Whew! I've got it now and it's working great.

  6. #6
    Join Date
    Mar 2010
    Location
    northern california coast
    Posts
    11
    Plugin Contributions
    0

    Default Re: Where do I add facebook open graph tags?

    For the sake of those who, in the future, may be looking for the answer to the same question I had, what i did was add the Facebook open graph tags to my custom html_header.php file. (Don't forget to back up your files before modifying them!)

 

 

Similar Threads

  1. v151 Open Graph Meta Tags
    By BlessIsaacola in forum General Questions
    Replies: 2
    Last Post: 9 Nov 2013, 11:36 AM
  2. v139h FaceBook Graph API with Link on a Page Help
    By explorer1979 in forum General Questions
    Replies: 6
    Last Post: 22 Apr 2012, 02:43 PM
  3. I want to add Facebook open graph tags
    By stevemax in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 18 Jul 2011, 07:07 PM
  4. Open Graph DOCTYPE -- can't validate W3C
    By damiantaylor in forum General Questions
    Replies: 2
    Last Post: 29 Apr 2011, 04:50 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR