ChatGPTによると:
To use Make.com (formerly Integromat) for automatically posting a new WordPress.com post to Mastodon, follow these steps:
Prerequisites:
- Make.com account: Sign up if you don’t already have one.
- WordPress.com site: Ensure you have the necessary API credentials (Admin access or API tokens).
- Mastodon account: Have the server’s API token for posting.
Step-by-Step Guide:
Step 1: Create a New Scenario
- Log in to your Make.com account.
- Click “Create a new scenario.”
Step 2: Add a WordPress Module
- Search for and add the WordPress module.
- Select the “Watch Posts” trigger.
- Configuration:
- Enter your WordPress.com site’s API URL (e.g.,
https://example.wordpress.com/wp-json).
上記を自分のURLにする(hogehoge.comとか) - Provide API credentials if required.
WPのMake.comプラグインの設定でAPI KEYがあるのでそれを入れる - Specify the post status to watch (e.g.,
Published).
- Enter your WordPress.com site’s API URL (e.g.,
- Configuration:
- Test the connection to ensure Make.com can read your WordPress posts.
Step 3: Add a Mastodon Module
- Search for and add the Mastodon module.
- Select the “Create a Status” action.
- Configuration:
- Enter your Mastodon instance URL (e.g.,
https://mastodon.social). - Provide your Mastodon API token (found in Mastodon’s Settings > Development > Applications > Generate a new token).
- Set the Content field to dynamically use the title and/or excerpt of your WordPress post. For example:arduinoコードをコピーする
{{Title}} {{Link}} #hashtags
- Enter your Mastodon instance URL (e.g.,
- Optionally set visibility (e.g., public, unlisted, private).
- Configuration:
- Test the connection to ensure it works.
Step 4: Map the Data
- Link the output from the WordPress trigger to the Mastodon action. For example:
- Post Title → Status Content.
- Post URL → Append to Status Content.
Step 5: Set a Schedule
- Set how often the scenario should run (e.g., every 15 minutes).
- Enable the scenario.
Step 6: Test Your Scenario
- Publish a new post on WordPress.
- Check if the post is automatically shared on Mastodon.
つづく(次は API URLはどこ?)