How to make Facebook "og" tags pull from default page information

  • Hello,


    I've created a new Page Attributes template for Facebook using the example found here: https://docs.grabaperch.com/pe…book-and-twitter-sharing/


    The site name, url and description all pull automatically from the control panel. However, I can't figure out how to make "og:title" do the same (pull from "page title" in the control panel.)


    Is there a way to reference "<?php perch_pages_title(); ?>" and have it pull into my custom attributes for Facebook (<meta property="og:title" content="">)?

  • cstauf2

    Changed the title of the thread from “How to make Facebook/LinkedIn tags pull default site/page information” to “How to make Facebook "og" tags pull from default page information”.
  • drewm

    Approved the thread.