Facebook FQL。无法从 event_member 获取 eid 列表

发布于 2024-10-08 06:41:28 字数 394 浏览 0 评论 0原文

我正在尝试从粉丝页面获取事件信息,但从 event_member 数据库中获取任何内容时遇到了麻烦。

我可以通过以下方式从事件数据库中获取正确的信息: 查询:'SELECT eid, name, tagline, pic_small,host, description, start_time, Creator FROM event WHERE eid=EVENTIDNUMBER'

但要获取 eid 查询:'SELECT eid FROM event_member WHERE uid=1289767016'

不返回任何内容。

我真的非常需要这个才能工作。我似乎无法在 Facebook 上取得任何进展,并且对我与 FB 合作的承诺感到非常不满意。

非常欢迎任何帮助。

热熔胶

I am trying to get event information from a fan page, but running into troubles just getting ANYTHING out of the event_member db.

I can get proper information out of the event DB with;
query: 'SELECT eid, name, tagline, pic_small,host, description, start_time, creator FROM event WHERE eid=EVENTIDNUMBER'

but to get the eid(s)
query: 'SELECT eid FROM event_member WHERE uid=1289767016'

returns nothing.

I really really need this to work. I can;t seem to get anywhere with Facebook, and am feeling very unhappy with my commiment to make somthing work with FB.

ANy help is greatley welcomed.

TBR

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

如日中天 2024-10-15 06:41:28

您需要指定事件列表的权限

<fb:login-button perms="user_events,friends_events"></fb:login-button>

https://developers.facebook.com/docs/authentication/权限/

you need to specify permissions for events list

<fb:login-button perms="user_events,friends_events"></fb:login-button>

https://developers.facebook.com/docs/authentication/permissions/

梦一生花开无言 2024-10-15 06:41:28

我使用这个:

$_SESSION['state'] = md5(uniqid(rand(), TRUE)); //CSRF protection
 $dialog_url = "https://www.facebook.com/dialog/oauth?client_id=" 
   . $app_id . "&redirect_uri=" . urlencode($my_url) . "&scope=email,user_events,friends_events&state=". $_SESSION['state'];

我将范围与 user_events 和 Friends_events 一起使用。

但查询不起作用。

我的查询是(设置范围权限后):

$dataGo = mktime(0,0,0,06,01,2012);
$fql = "SELECT eid FROM event_member WHERE uid = '1301241847' AND rsvp_status = 'attending' AND start_time > '" . $dataGo . "'";

I use this:

$_SESSION['state'] = md5(uniqid(rand(), TRUE)); //CSRF protection
 $dialog_url = "https://www.facebook.com/dialog/oauth?client_id=" 
   . $app_id . "&redirect_uri=" . urlencode($my_url) . "&scope=email,user_events,friends_events&state=". $_SESSION['state'];

I use scope with user_events and friends_events.

But the query doesn't work.

My query is (after set scope permission):

$dataGo = mktime(0,0,0,06,01,2012);
$fql = "SELECT eid FROM event_member WHERE uid = '1301241847' AND rsvp_status = 'attending' AND start_time > '" . $dataGo . "'";
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文