如何向页面添加多语言支持(使用法语 facebook 的用户为法语粉丝页面,使用 EN facebook 的用户为英语粉丝页面)
我试图让我的粉丝专页的“欢迎”页面显示不同的视频和文本行,无论他们在 Facebook 上使用法语还是英语。因此,使用法语 Facebook 用户界面的用户将看到下面的法语视频和文本,而使用默认英语的用户将看到默认的英语页面。
希望有人能给我一些帮助,我真的不知道该怎么做......
I'm trying to have my fanpage's "welcome" page to show a different video and lines of text wether they are using french settings on facebook or english. So those using the french facebook UI will see the french video and text below and those using the default english will see the default english page.
Hopefully someone can point me to some help, I really am not sure how ot do this...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您有自定义应用程序选项卡,请使用 Graph User 对象的
locale
属性。此处的信息:http://developers.facebook.com/docs/reference/api/user /另外,最好阅读以下内容:http://developers.facebook.com/ docs/internationalization/
我认为你无法翻译目前非应用程序 Facebook 页面。
Use
locale
property of Graph User object if you have a custom app tab. Info here: http://developers.facebook.com/docs/reference/api/user/Also, would be good to read this: http://developers.facebook.com/docs/internationalization/
I don't think you can translate the non-app facebook page at the moment.
当用户访问粉丝专页的选项卡时,提供选项卡内容的应用程序会从 Facebook 获取“signed_request”。在signed_request中,有'user.locale'属性。只需使用它来确定用户正在使用的区域设置代码即可。
http://developers.facebook.com/docs/authentication/signed_request/
When a user access the fanpage's tab, the application that provides the tab content get 'signed_request' from Facebook. In signed_request, there is 'user.locale' property. Just use it to determine what locale code the user is using.
http://developers.facebook.com/docs/authentication/signed_request/