开发者

Facebook SDK FQL: Getting profile URL?

开发者 https://www.devze.com 2023-02-09 23:27 出处:网络
I a开发者_开发知识库m using fql from facebook and querying user table to get profile_url string facebook_info = Convert.ToString(FacebookAppExtensions.Query(app, \"**SELECT

I a开发者_开发知识库m using fql from facebook and querying user table to get profile_url

string facebook_info = Convert.ToString(FacebookAppExtensions.Query(app, "**SELECT 
                       profile_url from user where uid=" + facebook_ID**));
facebook_info = facebook_info.Substring(17);
char[] charsToTrim1 = { '}', ']', ' ', '"' };
facebook_info = facebook_info.TrimEnd(charsToTrim1);

The problem is that for some users the URL works while for other users, facebook says "UNKNOWN" page, is this a bug?

Thanks Behrouz


no need to query: http://www.facebook.com/profile.php?id=UID


I think as all data you can fetch this is controlled by the user too. If user doesn't let you fetch data about him, then you don't get that data via FQL.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号