360 Secure SkillHub
360 安全技能中心

SocialKit Google Business Post

先创建 standard、event 或 offer 类型的帖子并写入 post.json,再在本地校验,然后请用户在终端审批,最后调用 Google Business Profile 官方 API 发布;使用前需完成 Google Cloud 项目审批与 OAuth 登录,照片须为公网 HTTPS 链接。

分类:营销
ahmadhussain0335
ahmadhussain0335
热度 36.94
最近更新 2026-11-06 14:56:19

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add ahmadhussain0335/socialkit-google-business-post
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
socialkit-google-business-post
description
Publishes an update, event or offer to the user's Google Business Profile through the official Business Profile APIs after the user approves it. Use when the user wants to post to their Google Business Profile or Google Maps listing.
license
MIT
metadata
{"author":"Ahmad Hussain","platform":"google-business","requires":"socialkit-social-core"}

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

  1. Sign in once (browser, local redirect): node scripts/auth.mjs --platform google-business
  2. 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>
  3. Write post.json (text, media with alt text, options). See node scripts/publish.mjs --help.
  4. Validate: node scripts/publish.mjs --check --dir gbp-<slug>
  5. Stop. Show the post. Ask the user to approve in their own terminal: node <socialkit-social-core>/scripts/post.mjs --approve --dir gbp-<slug>
  6. 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-repost only if the user asks.