{% extends "base.html" %} {% block title %}Settings{% endblock %} {% block content %}

Facebook settings

{% if env_active %}
🔒 Using FB_PAGE_ID / FB_ACCESS_TOKEN environment secrets -- the fields below are read-only while both are set. Manage them from your host's secret/variable settings (e.g. a Hugging Face Space's Settings → Variables and secrets), not here.
{% else %}

Generate a Page access token at developers.facebook.com/apps (Tools → Token Generator → select your Page → check publish_video, pages_manage_posts, pages_read_user_content). Stored locally in this app's database. For better security, set FB_PAGE_ID / FB_ACCESS_TOKEN as environment secrets instead -- then the token is never stored here or shown in this form.

{% endif %}
{% endblock %}