Facebook SDK FQL:获取个人资料 URL?
我正在使用 facebook 中的 fql 并查询用户表来获取 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);
问题是,对于某些用户,该 URL 有效,而对于其他用户,facebook 说“未知”页面,这是一个错误吗?
谢谢 贝鲁兹
I am 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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
无需查询: http://www.facebook.com/profile.php?id= UID
no need to query: http://www.facebook.com/profile.php?id=UID
我认为您可以获取的所有数据也由用户控制。如果用户不允许您获取有关他的数据,那么您将无法通过 FQL 获取该数据。
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.