1

有没有办法(API)来提取建立友谊的日期或特定人加入 Facebook 粉丝页面/群组的日期?

我在文档和 Web 中没有找到任何内容,但是正如您在 Facebook 中看到的那样,当您与给定的朋友建立友谊时,我仍然希望有一种方法可以提取它。

谢谢和欢呼,亚历克斯

4

1 回答 1

1

For friends and groups, Facebook does directly expose that data via the API. You can take a look at the FQL documentation. This has the most detailed information about what is exposed via the API. The friend and group_member don't have any record of when the relationship was created.

You can get some information by querying the user's stream to find the friendship/membership announcement:

fql?q=SELECT post_id, type, message, description, created_time, attribution FROM stream WHERE source_id = me() AND strpos (description, 'are now friends') > 0

However you'll need to concatenate several of these queries to get all information, as each stream query is limited to a maximum of 30 days worth of data or 50 posts.

Pages are easier. You can tell when a user liked a page via the created_time column in the page_fan table.

于 2012-05-07T14:19:50.127 回答