Facebook API - Get Life Events (graph-api or FQL)

六眼飞鱼酱① 提交于 2020-01-02 11:03:46

问题


After reading extensively FB's documentation for graph-api and FQL I still can't find a way of obtaining my friends' life events (e.g. graduation date, anniversary, new home, etc).

The only event explicitly available in their documentation are birthdays (which is quite obvious).

I'm almost certain that it is possible to do the above because the IPhone App "Karma" (http://itunes.apple.com/us/app/karma/id457143798?mt=8) provides automatically that information after logging with FB (rulling out options such as crawling my friends wall, which would also be very unlikely due to FB's permissions)

Any ideas? Possible FQL selectors that are not being documented?

Thanks!

EDIT: Note that Karma's Android app does not provide life events.


回答1:


The question was answered here: Grabbing Facebook life events

These posts have a 'type', with a code. For instance, Relationship status change would be code 62, location changes would be code 282.

Look at the link




回答2:


Most of the changes to a user’s personal info (education, work, hometown, relationship status) just generate a “normal” status update message – AFAIK there’s no distinction made between those and other manual status updates.

So I’d say an app wanting to display that kind of info would have to go through the user’s status messages and filter out the ones it thinks to be relevant itself by looking at the story text.




回答3:


SELECT name, education_history, work_history, relationship_status from user where uid IN (SELECT uid2 FROM friend WHERE uid1 = me())

You can use this for education and work history or user, but for other your have to pass through their feed using

id/feed

and check story edge for filtration.



来源:https://stackoverflow.com/questions/11857944/facebook-api-get-life-events-graph-api-or-fql

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!