facebook-page-post-scraper icon indicating copy to clipboard operation
facebook-page-post-scraper copied to clipboard

Comments dictionary changed format

Open alvin-leong opened this issue 7 years ago • 6 comments

Facebook seems to have removed the "from" property from Comments. This causes a problem for the comment_author field in the comments scraper. Is there a possible workaround?

alvin-leong avatar Feb 08 '18 07:02 alvin-leong

That's true me too getting same error

iamrajeshchauhan avatar Feb 08 '18 09:02 iamrajeshchauhan

For me, the same error occurs. Will someone adapt the existing script in the next weeks?

philippnkling avatar Feb 12 '18 08:02 philippnkling

Just FYI, as of 06/02, getting User information now requires a page access token (you need to be admin of that page afaik). It appears that this change is permanent for all versions of the API. see https://developers.facebook.com/ads/blog/post/2017/11/07/marketing-api-v211/ So I guess the "workaround" is to replace

comment_author = unicode_decode(comment['from']['name'])

with

comment_author = None

matthiasfru avatar Feb 24 '18 17:02 matthiasfru

Yes, maybe because many competitive pages try to scan user's information of other pages so facebook locks this feature.

leduyloc avatar Feb 26 '18 21:02 leduyloc

Thanks, @matthiasfru. That really sucks though :/

wachmann avatar Mar 07 '18 17:03 wachmann

Hi @matthiasfru , Thanks for the twisting the code.

However, is there any other source to get the comment authour name ???

iamrajeshchauhan avatar Mar 13 '18 11:03 iamrajeshchauhan