1

3 个月前,我开发了一个 Web 应用程序,通过搜索用户名向 facebook 用户展示。要访问 facebook,我已经下载了 facebook dll 并从 facebook 获得了应用程序密钥和密钥。

我的 Web 应用程序运行良好并显示来自 facebook 的记录。从昨天开始,我的应用程序无法正常工作。当我按名称搜索时,我无法得到回应。

我已经在线测试了 facebook testAPI 工具中的 fql。到时候我可以得到回应。但是我在应用程序中使用的 fql 相同,但是当我按名称搜索时,它无法从 facebook 获得响应。如果我通过 uid 搜索,我可以得到来自 facebook 的回复。

这是我的代码-

facebook.Components.FacebookService fb = new FacebookService();
fb.ApplicationKey = "bfeefa69afdfe81975f0d6136ace3009";
fb.Secret = "9b672d682e1d8befd06382953fc2615b";
fb.IsDesktopApplication = false;

//the below fql gives response as xml.
//select name, profile_url from user where uid = '1730923544' -I can get response for this fql.

//the below fql does not give response as xml. But it gives empty string.
//the below fql does gives us response as xml when i try in facebook testAPI.
//select name, profile_url from user where name = 'Suresh Rajan' -I couldn't get response for this fql.

string s = fb.fql.query("select name, pic_square, profile_url from user where name = 'Suresh Rajan'");

if (String.IsNullOrEmpty(str1))
    Response.Write("Empty Response");
else
    Response.Write(str1 + " <br />");  

如何在 facebook fql 中按名称搜索。

谢谢重新

4

1 回答 1

0

昨天 Facebook 的 API 出现问题,这可能导致某些查询无法正常工作。今天再试一次,它可能会奏效。

这是 facebook 的 api 状态页面,他们报告 API 的任何持续问题:http: //developers.facebook.com/live_status.php

如果它仍然不适合您,那么很可能他们为昨天的问题部署的修复程序中存在错误。这是不久前发生的一个类似的错误,听起来就像这样:http ://bugs.developers.facebook.com/show_bug.cgi?id=1359 。如果是这种情况,您应该在 facebook 错误跟踪器上打开一个新错误,因为该错误已旧且已关闭。

于 2010-01-29T07:23:07.777 回答