FBML tag to define the user language in the tab

I have a special tab for a fan page that should display a JPEG image. I have an image in English and one in French. Is there a way to detect a custom language in FBML to display the correct image?

I know how to make this server part using the option fb_sig_localefor Facebook, but I planned to use the Static FBML application, which is much simpler than creating an entire custom application.

+3
source share
1 answer

You can set a restriction on countries, for which use this:

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

check here for more restrictions in fb: limited:

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

+2

Source: https://habr.com/ru/post/1740530/


All Articles