Facebookをやめるのでマストドンふっか~つ!

ChatGPTによると:

To use Make.com (formerly Integromat) for automatically posting a new WordPress.com post to Mastodon, follow these steps:


Prerequisites:

  1. Make.com account: Sign up if you don’t already have one.
  2. WordPress.com site: Ensure you have the necessary API credentials (Admin access or API tokens).
  3. Mastodon account: Have the server’s API token for posting.

Step-by-Step Guide:

Step 1: Create a New Scenario

  1. Log in to your Make.com account.
  2. Click “Create a new scenario.”

Step 2: Add a WordPress Module

  1. Search for and add the WordPress module.
  2. 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).
  3. Test the connection to ensure Make.com can read your WordPress posts.

Step 3: Add a Mastodon Module

  1. Search for and add the Mastodon module.
  2. 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
    • Optionally set visibility (e.g., public, unlisted, private).
  3. 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

  1. Set how often the scenario should run (e.g., every 15 minutes).
  2. Enable the scenario.

Step 6: Test Your Scenario

  1. Publish a new post on WordPress.
  2. Check if the post is automatically shared on Mastodon.

つづく(次は API URLはどこ?)