[resolved] Like button language not correct (2 posts)

  1. lacanadienne58
    Posted 3 years ago #

    I had a 3 languages website, performed with Polylang plugin. I use Facebook plugin (Version 1.3.1) for like buttons on posts.
    After publishing a post in a language (for example german), like buttons (of any post on website) turn on in this language.


    Thank you in advance.


  2. Niall Kennedy
    Plugin Author

    Posted 3 years ago #

    The Facebook plugin for WordPress matches the locale reported by your WordPress site with a valid Facebook locale to load the appropriate version of the Facebook JavaScript SDK and render social plugin buttons (Like, Send, etc.) in the appropriate language. The matched locale is stored as the fb_locale transient for 24 hours to prevent needing to remap a specified WordPress locale to a Facebook locale with each page load.

    You can override the response from get_transient using a pre transient filter to suit your six language use case.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Facebook
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic