WordPress.org

Ready to get started?Download WordPress

Forums

WP Facebook Open Graph protocol
[resolved] Error report at og:locale (8 posts)

  1. shun55
    Member
    Posted 2 years ago #

    I'm using WordPress Japanese Ver.

    I installed "WP Facebook Open Graph protocol" and debug on Facebook debug page.

    Then displayed bellow message.

    ----
    Errors That Must Be Fixed

    Object Invalid Value: Object at URL 'http://job.gokigenworks.com/' of type 'website' is invalid because the given value 'ja' for property 'og:locale:locale' could not be parsed as type 'enum'.
    ----

    Bellow line return a string value: <meta property="og:locale" content="ja" />
    but, this occurs error.
    > echo "\t<meta property='og:locale' content='".esc_attr( get_locale() )."' />\n";

    And I edit plugin code directly like this...
    > echo "\t<meta property='og:locale' content='ja_JP' />\n";

    It was work fine.

    http://wordpress.org/extend/plugins/wp-facebook-open-graph-protocol/

  2. janolima
    Member
    Posted 2 years ago #

    Thanks for share.

    It would be a good idea if the plugin allows users to also manually define LOCALE.

  3. Andrew Ryno
    Member
    Plugin Author

    Posted 2 years ago #

    This is a problem that WordPress devs know about. They don't follow the same locale requirements as Facebook. In one of the next updates I'll be allowing the filtering of get_locale() so this won't be a problem in the future.

  4. Chuck Reynolds
    Member
    Plugin Author

    Posted 2 years ago #

    Pushed an update (2.0.3) that should nuke that Facebook parser mismatched metadata warning.

  5. janolima
    Member
    Posted 2 years ago #

    Thanks for the update but it does not work for me.

    Regards,

  6. Chuck Reynolds
    Member
    Plugin Author

    Posted 2 years ago #

    well according to your page source you're still on v2.0.2 no .3. Also wordpress has an issue with japan locale by spitting it out as a 2 letter instead of the standard four with an underscore. It's a known issue I hope they diagnose soon.

  7. janolima
    Member
    Posted 2 years ago #

    I have several pages. Check this please, just update the plugin, the problem persists:

    http://goo.gl/h0vbY

  8. Chuck Reynolds
    Member
    Plugin Author

    Posted 2 years ago #

    @janolima your site looks fine in the debugger http://d.pr/i/sZwB
    You just need to make your image 200px minimum. Other than that it works fine.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic