3

I have a custom tab for a fan page that need to display a JPEG image. I have an image in English and one in French. Is there a way to detect the user locale in FBML to display the right image?

I know how to do this server side using the Facebook fb_sig_locale param but I was planning on just using the Static FBML app which is much simpler than setting up a whole custom application.

4

1 回答 1

2

您可以按国家/地区进行限制,为此使用:

<fb:restricted-to location="us">
  <img src="../us_image.gif"/>
<fb:else>
  <img src="../world_image.gif"/>
</fb:else>
</fb:restricted-to>

在此处检查 fb:restricted-to 中可能的更多约束:

http://wiki.developers.facebook.com/index.php/Fb:restricted-to

于 2010-04-10T03:16:07.010 回答