私は3か月前に、ユーザー名を検索してFacebookユーザーに表示するWebアプリケーションを開発しました。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で名前で検索する方法。
ありがとう再