[Python] Meta Graph API: How to get a Permanent Access Token for Internal Daemon App?

Discussão em 'Python' iniciado por Stack, Maio 7, 2025.

  1. Stack

    Stack Membro Participativo

    I'm developing a Python daemon application intended to run continuously in the background and interact programmatically with an internal Facebook page using the Meta Graph API. I've been struggling to find a reliable method for obtaining a permanent access token — or at least establishing a token-refresh strategy that doesn't require manual renewal every 60 days.

    The official Facebook documentation isn't very clear or helpful in this specific scenario. Ideally, I'd like a solution that:

    • Doesn't need frequent manual intervention.
    • Provides a stable, long-term authentication mechanism suitable for unattended scripts/daemons.

    Has anyone tackled a similar problem or found best practices for handling long-lived or permanent tokens with the Meta Graph API? Additionally, are there recommended developer communities specifically for Meta Graph API development where I could seek further advice?

    Continue reading...

Compartilhe esta Página