Google Business Profile post
Apply socialkit-social-core. Official API only. Setup: setup.
Rules
- The user's Google Cloud project must be approved for the Business Profile APIs first (see setup).
- Find options.location with
node scripts/auth.mjs --platform google-business --locations. - Photos must be at public https URLs.
Steps
- Sign in once (browser, local redirect):
node scripts/auth.mjs --platform google-business - Create the post folder with the socialkit-social-core post script:
node <socialkit-social-core>/scripts/post.mjs --init --dir gbp-<slug> --platform google-business --kind <standard|event|offer> - Write
post.json(text, media with alt text, options). Seenode scripts/publish.mjs --help. - Validate:
node scripts/publish.mjs --check --dir gbp-<slug> - Stop. Show the post. Ask the user to approve in their own terminal:
node <socialkit-social-core>/scripts/post.mjs --approve --dir gbp-<slug> - Publish:
node scripts/publish.mjs --publish --dir gbp-<slug>and report the result.
Failure handling
- Quota or 429 errors: the project is not approved yet; see setup.
GBP_403: the account cannot manage this location.APPROVAL_REQUIRED: the post changed after approval; ask again.ALREADY_PUBLISHED: this folder was posted; use--allow-repostonly if the user asks.
