[Python] Can't catch user info from comments when using Facebook Graph API

Discussão em 'Python' iniciado por Stack, Junho 5, 2025.

  1. Stack

    Stack Membro Participativo

    I'm not getting username and user id from comments with Graph API.

    I wrote a python script to catch comments from a Facebook live streams and save them into Google sheets. The script is working fine, comments are being saved into the sheet, but username and user ids are not. They are included in the script as well, I'm not getting any errors for it. part of the code where I catch comments Debug line returns only message, created_time and id. I don't get "from" at all and from what I've gathered user info is in "from" element of the comment.

    I have a page access token. page access token

    I have advanced access rights for pages_read_engagement and pages_show_list permissions for my App. advanced access rights

    One more thing to mention. When page which streams writes a comment I can see user id and username of that page, so this only occurs when other people write comments. It feels like I'm missing some accesses or something but I'm not sure which ones... accesses I have

    Any help would be most welcome!

    Continue reading...

Compartilhe esta Página