Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -13,6 +13,7 @@ FB_APP_SECRET = os.getenv("FB_APP_SECRET")
|
|
| 13 |
FB_REDIRECT_URI = os.getenv("FB_REDIRECT_URI")
|
| 14 |
FB_CLIENT_URL = os.getenv("FB_CLIENT_URL", "https://www.facebook.com")
|
| 15 |
FB_API_URL = os.getenv("FB_API_URL", "https://graph.facebook.com")
|
|
|
|
| 16 |
|
| 17 |
# ==== MODULE URL ====
|
| 18 |
routing_response_module = st.secrets["ViBidLQA_Routing_Module"]
|
|
@@ -428,7 +429,7 @@ with tab2:
|
|
| 428 |
page_id = page['id']
|
| 429 |
page_access_token = page['access_token']
|
| 430 |
|
| 431 |
-
response = requests.post(f"{
|
| 432 |
"page_id": page_id,
|
| 433 |
"page_access_token": page_access_token
|
| 434 |
})
|
|
|
|
| 13 |
FB_REDIRECT_URI = os.getenv("FB_REDIRECT_URI")
|
| 14 |
FB_CLIENT_URL = os.getenv("FB_CLIENT_URL", "https://www.facebook.com")
|
| 15 |
FB_API_URL = os.getenv("FB_API_URL", "https://graph.facebook.com")
|
| 16 |
+
FB_BACKEND_URL = os.getenv("FB_BACKEND_URL")
|
| 17 |
|
| 18 |
# ==== MODULE URL ====
|
| 19 |
routing_response_module = st.secrets["ViBidLQA_Routing_Module"]
|
|
|
|
| 429 |
page_id = page['id']
|
| 430 |
page_access_token = page['access_token']
|
| 431 |
|
| 432 |
+
response = requests.post(f"{FB_BACKEND_URL}/register-webhook", json={
|
| 433 |
"page_id": page_id,
|
| 434 |
"page_access_token": page_access_token
|
| 435 |
})
|