Support » Plugin: WP Facebook Open Graph protocol » [Plugin: WP Facebook Open Graph protocol] Error report at og:locale

  • Resolved shun55

    (@shun55)


    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/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thanks for share.

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

    Plugin Contributor Andrew Ryno

    (@andrewryno)

    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.

    Plugin Author Chuck Reynolds

    (@ryno267)

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

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

    Regards,

    Plugin Author Chuck Reynolds

    (@ryno267)

    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.

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

    http://goo.gl/h0vbY

    Plugin Author Chuck Reynolds

    (@ryno267)

    @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.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Plugin: WP Facebook Open Graph protocol] Error report at og:locale’ is closed to new replies.