Facebook fanbox - 无法更改区域设置

发布于 2024-12-12 10:12:17 字数 322 浏览 6 评论 0原文

我使用 facebook fanbox 而不是 likebox 因为 fanbox 有 css 属性。 我嵌入了这个js文件:

cs_CZ 应该更改我的语言环境设置,翻译我的 fanbox,但没有任何反应。是否可以以某种方式更改我的粉丝盒的语言(我知道它已被弃用,但无论如何......)

谢谢

I'm using facebook fanbox instead of likebox because fanbox has css property.
I embedded this js file:

<script type="text/javascript" src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php/cs_CZ"></script>

cs_CZ shoud have changed my locale settings, translate my fanbox but nothing happens. Is it somehow possible to change language of my fanbox (I know it's deprecated but whatever...)

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

总攻大人 2024-12-19 10:12:18

好的,我明白了!
实际上,你必须将旧 API 与新 API 混合在一起(想知道这能工作多久;))

<div id="fb-root"></div>
    <script>
            window.fbAsyncInit = function() {
                    FB.init({ appId: 'yourPageIdHere', status: true, cookie: true, xfbml: true});
            };
            (function() {
                    var e = document.createElement('script');
                    e.type = 'text/javascript';
                    e.src = document.location.protocol + '//connect.facebook.net/cs_CZ/all.js';
                    e.async = true;
                    document.getElementById('fb-root').appendChild(e);
            }());
    </script>

<fb:fan profile_id="yourPageIdHere" stream="1" connections="0" logobar="0" width="280" css="your.cssfilehere?1"></fb:fan>

Ok, I got it!
Actually, you have to mix old API with new API (wondering how long this will work ;) )

<div id="fb-root"></div>
    <script>
            window.fbAsyncInit = function() {
                    FB.init({ appId: 'yourPageIdHere', status: true, cookie: true, xfbml: true});
            };
            (function() {
                    var e = document.createElement('script');
                    e.type = 'text/javascript';
                    e.src = document.location.protocol + '//connect.facebook.net/cs_CZ/all.js';
                    e.async = true;
                    document.getElementById('fb-root').appendChild(e);
            }());
    </script>

<fb:fan profile_id="yourPageIdHere" stream="1" connections="0" logobar="0" width="280" css="your.cssfilehere?1"></fb:fan>
丑丑阿 2024-12-19 10:12:17

我知道它已被弃用,但无论如何...... ...呃,是的。那。

它已被替换为“喜欢”按钮/框(不久前),该按钮/框确实需要区域设置。

如果旧的、已弃用的插件不再适用于某个区域设置,则他们已禁用该功能。

I know it's deprecated but whatever... ... erm, yeah. That.

It's been replaced with the Like button / box (some time ago) which does take a locale.

If the old, deprecated plugin doesn't work anymore with a locale, they've disabled that feature.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文