Skip to content
This repository has been archived by the owner on Jul 14, 2020. It is now read-only.

Comments dictionary changed format #98

Open
alvin-leong opened this issue Feb 8, 2018 · 6 comments
Open

Comments dictionary changed format #98

alvin-leong opened this issue Feb 8, 2018 · 6 comments

Comments

@alvin-leong
Copy link

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?

@iamrajeshchauhan
Copy link

That's true me too getting same error

@philippnkling
Copy link

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

@matthiasfru
Copy link

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

@leduyloc
Copy link

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

@wachmann
Copy link

wachmann commented Mar 7, 2018

Thanks, @matthiasfru. That really sucks though :/

@iamrajeshchauhan
Copy link

Hi @matthiasfru , Thanks for the twisting the code.

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants