仅在Graph API中获得对特定语言的回复 [英] Get only replies on a certain language in Graph API
问题描述
我正在使用图形API在多语言网站上搜索有关子喷射的结果. 例如:Sarkozy.
I am using the graph API to search result about a subjet on a multilingue web site. For example : Sarkozy.
因此,我使用以下网址: https://graph.facebook.com/search?q = Sarkozy .
So, i use this url : https://graph.facebook.com/search?q=Sarkozy.
然后,我只希望使用特定语言或国家/地区(例如英语,西班牙语,法语)进行答复.
Then, i want to have replies only in a certain language or country, for example English, Spainish, French.
有人知道获取此请求的URL是什么吗? 谢谢.
Does someone know what is the request url to obtain this ? Thanks.
推荐答案
添加&locale=en_US
作为参数,例如仅获得美国英语结果.您也可以尝试设置Accept-Language http标头.
Add &locale=en_US
as a parameter for example to get only US English results. You may also try setting the Accept-Language http header.
这篇关于仅在Graph API中获得对特定语言的回复的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!