New Facebook API fetching newsfeed and its comments -
is there way newsfeed , comments new changes facebook making on july, 2013 - https://developers.facebook.com/roadmap/
what im trying do?
i want fetch latest newsfeed comments (if comments on it) one api call, if group api call.
old way of doing it:
1) fetching stream table comments field (comment field deprecated now)
2) fetching graph comments field (which removed now)
quick links
- new changes quick doc: https://developers.facebook.com/blog/post/2013/04/03/new-apis-for-comment-replies/
- guide: https://developers.facebook.com/docs/graphapi/guides/comments/
- fql: http://developers.facebook.com/docs/reference/fql/comment
- graph: http://developers.facebook.com/docs/reference/api/comment/
how using fql? no longer worry because need post_id stream:
{"query1":"select post_id, actor_id, created_time, message stream filter_key in (select filter_key stream_filter uid=me() , type='newsfeed') , created_time<=now() limit 5 ","query2":"select post_id, id, fromid, time, text, user_likes, likes comment post_id in (select post_id #query1) limit 5 ","query3":"select id, name, pic_square profile id in (select actor_id #query1) or id in (select fromid #query2)"}
please test graph api explorer(migration settings of "july 2013 breaking changes" enable), works expected(of course, need granted permission read_stream).
Comments
Post a Comment