Mic*_*rdt 5 facebook localization facebook-graph-api
对于 Facebook 游戏,我想要具有多种语言(特别是英语和德语)标题的 Open Graph 图片对象。我按照 Facebook 的开放图国际化文档中的描述做了所有事情,但不知何故,对象(和动作)总是在新闻源和活动中显示英文标题 - 并且该应用程序在其配置中绝对是本地化的。
这是其中一个对象的 URL:http : //apps.facebook.com/spot-it/opengraph/picture/pictures.1A24.html
如果我使用设置为 German的 fb_locale 参数通过 Facebook 的对象调试器获得它,我会看到:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# spot-it: http://ogp.me/ns/fb/spot-it#">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta property="og:locale:alternate" content="de_DE">
<meta property="og:locale:alternate" content="en_US">
<meta property="og:locale" content="de_DE">
<meta property="fb:app_id" content="419035224820013">
<meta property="og:type" content="spot-it:picture">
<meta property="og:url" content="http://apps.facebook.com/spot-it/opengraph/picture/pictures.1A24.html">
<meta property="og:title" content="Beißerchen">
<meta property="og:description" content="Findest du die Fehler in 'Beißerchen'?">
<meta property="og:image" content="http://d2tv32y5kdvj8c.cloudfront.net/assets/pictures/1A24_potd.jpg">
</head>
<body>
<script type="text/javascript">
self.location.href = "";
</script>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
那么为什么 Facebook 在向德国用户显示涉及该对象的操作时不使用德语版本呢?我做错了什么,还是开放图的国际化根本不起作用?
小智 -2
在Developers.facebook.com的应用程序设置> 您的应用程序 >“本地化”中,您可以添加对其他语言的支持。
\n\n你可以设置:
\n\n我希望这就是您正在寻找的;)
\n| 归档时间: |
|
| 查看次数: |
1441 次 |
| 最近记录: |