【发布时间】:2014-02-13 08:21:16
【问题描述】:
我使用 facebook 图表搜索来获取有关 url 的信息。所以我使用 url 作为搜索值。
这几天出事了,不知道为什么?
大约 30% 的搜索值会抛出此错误:
{
"error": {
"message": "An unknown error has occurred.",
"type": "OAuthException",
"code": 1
}
}
这里是一个例子:
https://graph.facebook.com/search?q=poolhall.de&type=page
https://graph.facebook.com/search?q=pool-hall.de&type=page
唯一的区别:搜索值
"poolhall.de" <-> "pool-hall.de"
另一个有错误的网址是搜索“horje.de”
"horje.de" -> error, "horje" and "horje.com" etc -> no error!
但是为什么会抛出“OAuthExeption”?
API不需要授权!只需复制浏览器地址行中的 postet URL,您就会得到没有身份验证的结果。为什么某些搜索值会引发错误而其他搜索值有效?
【问题讨论】:
标签: facebook facebook-graph-api