Graph API:使用位置参数搜索Facebook帖子

Graph API:使用位置参数搜索Facebook帖子,facebook,facebook-graph-api,Facebook,Facebook Graph Api,我正在使用Facebook Graph API搜索带有位置参数的Facebook帖子。我正在使用下面的代码 string url = string.Format("https://graph.facebook.com/search?q={0}&type=post&limit=10&location=Newark,NJ,US", txtSearch.Text); WebClient web = new WebClient(); string xml = web.Downlo

我正在使用Facebook Graph API搜索带有位置参数的Facebook帖子。我正在使用下面的代码

string url = string.Format("https://graph.facebook.com/search?q={0}&type=post&limit=10&location=Newark,NJ,US", txtSearch.Text);
WebClient web = new WebClient();
string xml = web.DownloadString(url);
上面的代码在没有任何错误的情况下运行良好,但它看起来不像是在考虑位置参数

是否可以在获取Facebook帖子的搜索查询中添加任何位置参数?
位置参数可以是实际位置字符串(如加利福尼亚州洛杉矶)或地理编码值的形式?

您不能为post执行此操作,但可以使用地理编码按位置搜索位置:


...

您不能为post执行此操作,但您可以使用地理代码按位置搜索位置:


...

Facebook不支持使用API的位置“post”搜索

Facebook不支持使用API的位置“post”搜索

您可以在type=place上执行此操作,而不是在type=place上执行此操作,而不是在type=post上执行此操作