简体   繁体   English

使用Facebook graph-api接收供稿时定义语言

[英]Define language when using facebook graph-api receiving feeds

I'm using Facebook's PHP-lib to reading a user-feed through the api call. 我正在使用Facebook的PHP库来通过api调用读取用户供稿。 Therefore I created a dummy-application to use app-id and app-key to authenticate. 因此,我创建了一个虚拟应用程序以使用app-id和app-key进行身份验证。

I'm receiving the feed data but the default status messages generated by Facebook (eg 'User has changed his profile photo.') are in english. 我正在接收提要数据,但是Facebook生成的默认状态消息(例如“用户已更改其个人资料照片。”)是英语。

Is there a way to set the language of these messages? 有没有办法设置这些消息的语言?

Thx 谢谢

See the section titled “Specifying Locale” here, https://developers.facebook.com/docs/reference/api/ : 请参阅https://developers.facebook.com/docs/reference/api/此处的标题为“指定语言环境”的部分:

“If your app needs the ability to retrieve localized content in the language of a particular locale, add the locale parameter.” “如果您的应用需要以特定语言环境的语言检索本地化内容的能力,请添加locale参数。”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM