是否可以从用户响应的流中获取事件ID。我只有“XPTO即将参加活动”的消息。
问题是,我是否可以获取查询Stream表的事件ID,以便获取事件的名称?
到目前为止,我正在使用multyquery系统。
以下是一个例子:
$queries = array(
'query1' => 'SELECT app_data, app_id, post_id, share_count, created_time, message, permalink , actor_id, attachment, description, attribution, target_id, source_id, parent_post_id, filter_key, type FROM stream WHERE filter_key in (SELECT filter_key FROM stream_filter WHERE type = "newsfeed" AND uid = me()) ORDER BY created_time DESC LIMIT 50',
"query2" => "SELECT uid,first_name, last_name FROM user WHERE uid in (SELECT actor_id FROM #query1)",
"query3" => "SELECT page_id, name FROM page WHERE page_id in (SELECT actor_id FROM #query1)"
);
查询是获取页面和用户名。现在我需要添加事件名称,以防用户响应事件。