WordPress.org

Ready to get started?Download WordPress

Forums

WP Facebook Open Graph protocol
[resolved] Typo in og:locale? (3 posts)

  1. Hannes
    Member
    Posted 1 year ago #

    I was debugging one the sites where I use the "WP Facebook Open Graph protocol" plug-in and I got this error: "Object at URL 'http://thjonandiforysta.is' of type 'website' is invalid because the given value 'en-us' for property 'og:locale:locale' could not be parsed as type 'enum'."

    See:
    https://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fthjonandiforysta.is%2F

    I think it's supposed to be "en_US" and not "en-us" like it is now. Also, it would be nice if there was an option to change this, for websites that are not written in English.

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

  2. Chuck Reynolds
    Member
    Plugin Author

    Posted 1 year ago #

    In the past this is because a default UTC timezone is set and not one of the locations in general settings. I don't add the actual letters for locale - that pulls from WP core. Try setting an actual location in wp settings.

  3. Hannes
    Member
    Posted 1 year ago #

    I changed the timezone to Reykjavik and it still says <meta property="og:locale" content="en-us"/>

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic