Mastodon icon

Mastodon

Interact with Mastodon API

Overview

This node interacts with the Mastodon API, specifically supporting various resources and operations including media upload. For the Media resource with the Upload Media operation, it uploads binary media files to a specified Mastodon instance. This is useful for automating media uploads to Mastodon accounts, such as posting images or videos programmatically.

Use Case Examples

  1. Uploading an image file from a binary property to a Mastodon instance for automated social media posting.
  2. Adding accessibility descriptions and focus points to media uploads for enhanced content presentation.

Properties

Name Meaning
Mastodon URL The URL of the Mastodon instance to connect to for uploading media.
Binary Property The name of the binary property containing the file to be uploaded to Mastodon.
Additional Fields Optional additional fields for the media upload, including a description for accessibility and focus coordinates for the media.

Output

JSON

  • id - The unique identifier of the uploaded media on Mastodon.
  • type - The type of media uploaded (e.g., image, video).
  • url - The URL where the uploaded media can be accessed.
  • preview_url - A URL to a preview version of the uploaded media.
  • text_url - A text URL associated with the media, if any.

Dependencies

  • Requires an OAuth2 API credential for Mastodon authentication, including the base URL of the Mastodon instance.

Troubleshooting

  • Ensure the binary property name matches the actual binary data property in the input to avoid upload failures.
  • Verify the Mastodon instance URL is correct and accessible to prevent connection errors.
  • Check that the OAuth2 credentials are valid and have the necessary permissions to upload media.
  • Common error: 'The operation "upload" for resource "media" is not implemented!' indicates a misconfiguration or missing implementation in the node setup.

Links

Discussion