dev_hero
dev_hero

Reputation: 19

Facebook Graph API not returing all comments of posts

Hi i see that Facebook Graph API not returing all comments of posts for a page.it shows all posts of a page well but it not showing all comments for each post.it showing last two comments only!!. but for some other pages shows all comments.so don't why the problem is for some pages? is this a facebook bug? or please suggest if i am wrong.i used the access token of a app with read_stream premission.i don't want to use other permissions coz it's a security risk.

please reply

thanks

Upvotes: 0

Views: 2617

Answers (1)

user3613026
user3613026

Reputation: 191

its because commentor privacy settings. if user turn it off, you can't request the comments via API. when you do testing on facebook graph api:

postid/?fields=comments.summary(true)

you will see the debug info:

total_count represents the approximate number of nodes on the comments edge. The actual number of results returned might be different depending on privacy settings.

you can also refer to this related question: facebook graph api returns not all the comments

Upvotes: 1

Related Questions