facebook fql - FQL: Retrieve the original (parent) post id from a comment via the notifications table -
maybe total idiot, have been looking high , low answer reading fql api, searching interwebs , cannot find answer question.
i querying notifications table identify when comments on post user has made. i'm trying query original post create thread of conversation in app. cannot figure out how id of the original (parent) post. i've tried stream table, comments table, nothing can find return me id of original post comment in reply to.
this has possible (and obvious). need id of original post comment from.
any appreciated. thanks!
assume have comment id in format xxxxxxxx_yyyyy
fql easiest way post id
select parent_id,post_id comment id = 'xxxxxxxx_yyyyy'
for graph api bit tricky because facebook doesn't provide post id information you. xxxxxxxx
in comment id xxxxxxxx_yyyyy
object id post. assume page id zzzzzzzz
. if want know post id of comment id xxxxxxxx_yyyyy
.
post id graph zzzzzzzz_xxxxxxxx
( [page id]_[post id] )
but: comment id come post created album not follow method. more complicate because 1 album post contain lot of photo posts , facebook not return correct post id when query it. e.g. comment on photo 1234_5678
page id 5555
. when use fql above return post_id = 5555_1234
when use id search post return
{ "error": { "message": "unsupported request.", "type": "graphmethodexception", "code": 100 } }
because 1234
object_id of post not post_id. need use 1234
object_id search post_id later.
Comments
Post a Comment