我正在使用 PHP 库运行 FQL 查询。它在一个应用程序中被大量使用并且工作正常。但是,对于一个用户(内部 QA 测试人员),它会抛出一个奇怪的 FB 异常,我找不到任何文档。异常消息是:
“URL 有太多重定向。在重定向数量减少之前,Facebook 将无法抓取此 URL。”
鉴于查询是:
$multiQuery = "info":"SELECT name, pic, sex, activities, interests, quotes, about_me, profile_blurb, music, tv, movies, books, games, sports, favorite_teams, favorite_athletes, timezone, locale, first_name FROM user WHERE uid = me()",
"likes":"SELECT user_id, object_id, object_type FROM like WHERE user_id = me() LIMIT 350",
"stream":"SELECT post_id, created_time, permalink, description, message, description_tags FROM stream WHERE source_id = me() AND filter_key = 'owner' AND created_time > 946684800 LIMIT 350",
"links":"SELECT link_id, created_time, owner_comment, picture FROM link WHERE owner = me() LIMIT 350",
"photos":"SELECT created, caption, src FROM photo WHERE aid IN (SELECT aid FROM album WHERE owner = me() LIMIT 100) LIMIT 350",
"myPhotosLiked":"SELECT object_id, user_id FROM like WHERE object_id in (SELECT object_id FROM photo WHERE aid IN (SELECT aid FROM album WHERE owner = me() LIMIT 50) LIMIT 100) LIMIT 350",
"questions":"SELECT question, created_time FROM question where owner = me() LIMIT 350"
$results = $facebook->api('fql/?q=' . urlencode($multiQuery));
// $facebook is the Facebook PHP library reference
有人遇到过这个吗?
更新:感谢大家的建议。当然,现在 QA 人员不能再复制了。这是它第二次发生,而且两次都只是使用他的 FB 帐户(机器、浏览器无关紧要)并且持续了大约 24-48 小时,然后就自行消失了。我只需要等待它再次弹出来测试这些建议。
更新 2:好的 - 问题再次出现。我让测试人员在多个网络和计算机/设备上试用它。每次都出现同样奇怪的错误。不过要澄清一下,这只发生在他的 FB 帐户上。如果他尝试任何其他帐户,它就可以正常工作。也许 FB 只是对这个家伙帐户有个人不满。有人遇到过与个人帐户相关的类似错误吗?