开发者

The Facebook sharer's "locale" parameter doesn't work

开发者 https://www.devze.com 2023-03-30 20:44 出处:网络
Until now, when i want to share something in Facebook with a specific language(for example, french), i use the locale parameter, like this:

Until now, when i want to share something in Facebook with a specific language(for example, french), i use the locale parameter, like this:

http://www.facebook.com/sharer/sharer.php?locale=fr_FR

But now, the Facebook sharer ignor开发者_如何学JAVAes the locale parameter in the URL and always display the share pop up with the user language.

Anyone knows anything about?


As far as I know, the facebook sharer always uses en as the default locale to parse your website. But if you want to share your own website, there is a workaround to show the locale as you wish.

If you want to share the link: http://www.yourwebsite.com/something with different locales:

  1. Add a parameter to pass the locale information: http://www.yourwebsite.com/something?l=fr_FR and share this link with the sharer.
  2. Your website change its locale according to this parameter.

Not pretty but it works.

0

精彩评论

暂无评论...
验证码 换一张
取 消