ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Anyone experienced integrating OpenGraph Facebook meta

June 01, 2011 4:37pm

Subscribe [6]
  • #1 / Jun 01, 2011 4:37pm

    Sanity11

    314 posts

    Hi All.

    I am trying to integrate the Facebook OpenGraph tags. But for some reason Facebook isn’t picking them up.

    This is the url being liked: http://www.alsikkontoveren.nl/site/wensenoverzicht/15

    Facebook Lint Says:
    Required Property Missing   og:title is required
    Required Property Missing   og:type is required
    Required Property Missing   og:image is required
    Required Property Missing   og:url is required

    But they are there?!

    It’s driving me up the wall because I really don’t know what’s wrong with this code? If anyone has any idea I would really appreciate it! Thanks in advance!

  • #2 / Jun 09, 2011 1:10pm

    hellodaylight

    26 posts

    Same issue here. Would love to know if anyone is using the facebook iframe Like button on posts, along with the open graph meta tags to specify the info to be liked.

    Facebook Lint (http://developers.facebook.com/tools/lint/) also shows that I have incomplete meta tags, but View Source shows everything rendering fine. Is it a parse order issue?

    Live example: http://brighterlivingmagazine.com/health/article/how_to_exercise_without_doing_sport

    Thanks

  • #3 / Jun 09, 2011 2:23pm

    nbluedorn

    26 posts

    I got Facebook Like and Comments and Google +1 going on my site just this week.

    http://www.fallacydetective.com/articles/read/short-list-of-fallacies

  • #4 / Jun 09, 2011 2:36pm

    hellodaylight

    26 posts

    How are you populating the meta og tags? are you wrapping them in {exp:channels:entries tags}? And then using the same tags to output the article info further down the template?

  • #5 / Jun 09, 2011 3:35pm

    nbluedorn

    26 posts

    <meta property="og:type" content="article"/>
    <meta property="og:site_name" content="Fallacy Detective"/>
    <meta property="og:url" content="http://www.fallacydetective.com{if segment_1 != ""}/{segment_1}{/if}{if segment_2 != ""}/{segment_2}{/if}{if segment_3 != ""}/{segment_3}{/if}"/>
    <meta property="og:image" content="http://www.christianlogic.com/ee_templates/default_site/images/fallacy_detective.jpg"/>
    <meta property="fb:admins" content="100001244175697, 672826462, 509192824"/>
    <meta property="fb:app_id" content="142752522437471"/>
  • #6 / Jun 10, 2011 6:08am

    Linda A

    666 posts

    How did you sort out Facebook Comments? I tried using {comment_entry_id_auto_path} to fetch the blog post url as the canonical url, but it doesn’t parse within the Facebook Comments code. Instead the curly braces get encoded as percent-7B and percent-7D.

  • #7 / Jun 10, 2011 9:10pm

    nbluedorn

    26 posts

    I just pasted the code Facebook gave me. All the path info they need should be in the meta data.

  • #8 / Jun 16, 2011 9:39pm

    earthisland

    46 posts

    Hi,
    To get the post title, I used a version of:

    <meta property="og:title" content="{exp:weblog:entries weblog="main" url_title="{segment_3}" limit="1"}{title}{/exp:weblog:entries}" />

    a related problem: how do I populate the og:image property from a post without teaching the posters about meta tags and how to structure a URL?

    The linter won’t let me leave the property out (though if I do, the item will sometimes show the first, correct image and sometimes a random image element from the page design or the poster’s profile image), and leaving it empty (”“) generates a different error about structure…

    I believe as a result I’m seeing the behavior that a ‘like’ click by a user puts the post on the liker’s profile, but not on the wall. Thoughts?
    Thanks!

  • #9 / Aug 27, 2011 4:24am

    royby

    54 posts

    I’ve been having problems working out populate the og:url meta tag so each article renders properly. I used the code above from Nathaniel Bluedorn ({if segment_1 != ""}/{segment_1}{/if}{if segment_2 != ""}/{segment_2}{/if}{if segment_3 != ""}/{segment_3}{/if}”) which is rendering perfectly in the browser. However, I’m now receiving an error code when the facebook like or send buttons are used: The page at http://www.royby.com/royby/comments could not be reached because the server returned status code 404.
    I’m a bit stumped
    cheers

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases