# Meta App Review check for publishing apps

Free resources from the APIWings guide [Meta App Review for publishing apps](https://apiwings.com/blog/meta-app-review).
Code under the MIT License, data and templates under CC BY 4.0. Rules checked against Meta's documentation on 28 November 2026 (Graph API v27.0).

## What is here

| File | What it is |
|---|---|
| `meta-app-review-check.mjs` | The checker in JavaScript (Node 18+, no dependencies) |
| `meta_app_review_check.py` | The same checker in Python (3.9+, standard library only) |
| `meta-app-review-rules.json` | Every rule, permission and dependency, with the Meta page it comes from |
| `example-submission.json` | Worked example: a first draft with seven problems |
| `example-submission-fixed.json` | The same submission after the fixes |
| `review-test-cases.json` | 988 test cases (16 written by hand, 972 generated by `make-test-cases.mjs`) |
| `test-review-check.mjs`, `test_review_check.py` | Run the tests in each language |
| `app-review-templates.md` | Permission descriptions, test instructions and a screen recording shot list |
| `meta-app-review-cheat-sheet.pdf` | One-page cheat sheet |

## Use it

Describe what you are about to submit in a JSON file (copy `example-submission-fixed.json` and change it), then:

```
node meta-app-review-check.mjs my-submission.json
python meta_app_review_check.py my-submission.json
```

Add `--json` for machine-readable output. The exit code is 1 when something must be fixed first.

Results:
- `fix_first`: Meta's documentation says this gets a permission or the whole submission rejected.
- `review`: worth a second look (a short description, a call Meta may not have logged yet, a name spelled two ways).
- `no_issues_found`: none of the problems the checker knows about. **It is not an approval**: only Meta's reviewers decide.
- `not_required`: only people with a role on the app will use it, so App Review is not needed.

## What it cannot check

It reads what you declare; it does not watch your recording or call Meta. It cannot tell whether reviewers will understand your app, whether your use case fits each permission's Allowed Usage, or whether Business Verification will pass. Dependencies marked `"checked": "summary"` in the rules come from a summary of Meta's long Permissions Reference page: confirm them in your App Dashboard.

## Tests

```
node test-review-check.mjs    # 988 of 988 cases pass
python test_review_check.py   # 988 of 988 cases pass
```

Each generated case applies one or two changes to the fixed example and lists the findings it must produce. The expected findings are written in `make-test-cases.mjs`, not taken from the checker.
