Delete README.md
Browse files
README.md
DELETED
|
@@ -1,57 +0,0 @@
|
|
| 1 |
-
---
|
| 2 |
-
title: Facebook Hello World Test
|
| 3 |
-
emoji: 🧪
|
| 4 |
-
colorFrom: blue
|
| 5 |
-
colorTo: green
|
| 6 |
-
sdk: docker
|
| 7 |
-
app_port: 7860
|
| 8 |
-
---
|
| 9 |
-
|
| 10 |
-
# Facebook Hello World — Hugging Face test
|
| 11 |
-
|
| 12 |
-
This Space does only one thing:
|
| 13 |
-
|
| 14 |
-
1. Starts on port `7860`.
|
| 15 |
-
2. Waits 5 seconds.
|
| 16 |
-
3. Sends a Facebook Page post with exactly:
|
| 17 |
-
|
| 18 |
-
```text
|
| 19 |
-
Hello World
|
| 20 |
-
```
|
| 21 |
-
|
| 22 |
-
It uses `curl -4` so the test forces IPv4.
|
| 23 |
-
|
| 24 |
-
## Required Hugging Face Secrets
|
| 25 |
-
|
| 26 |
-
Add these under **Settings → Variables and secrets → Secrets**:
|
| 27 |
-
|
| 28 |
-
- `FB_PAGE_ID`
|
| 29 |
-
- `FB_PAGE_ACCESS_TOKEN`
|
| 30 |
-
|
| 31 |
-
Optional variable:
|
| 32 |
-
|
| 33 |
-
- `FB_GRAPH_API_VERSION` — default: `v25.0`
|
| 34 |
-
|
| 35 |
-
## What to check
|
| 36 |
-
|
| 37 |
-
After deploy, open **Logs**.
|
| 38 |
-
|
| 39 |
-
Success looks like:
|
| 40 |
-
|
| 41 |
-
```text
|
| 42 |
-
[TEST] SUCCESS ✅
|
| 43 |
-
[TEST] HTTP STATUS: 200
|
| 44 |
-
[TEST] META RESPONSE: {"id":"..."}
|
| 45 |
-
```
|
| 46 |
-
|
| 47 |
-
Failure prints the HTTP status and the full Meta error response.
|
| 48 |
-
|
| 49 |
-
You can also open:
|
| 50 |
-
|
| 51 |
-
```text
|
| 52 |
-
/status
|
| 53 |
-
```
|
| 54 |
-
|
| 55 |
-
to see the latest result.
|
| 56 |
-
|
| 57 |
-
> This is intentionally a test project. It attempts one `Hello World` post every time the container starts.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|