Add YouTube service plugin (plg_mokosuitecross_youtube) #141

Open
opened 2026-06-21 16:11:19 +00:00 by jmiller · 0 comments
Owner

Summary

MokoOnyx template supports YouTube as a social platform, but MokoSuiteCross has no YouTube cross-posting plugin. YouTube supports Community Posts for text/image content sharing without video upload.

API

YouTube Data API v3 — Community Posts:

  • Community posts: POST /youtube/v3/activities or via Community tab API
  • Video descriptions: Update video metadata with article links (secondary use case)

Auth

  • Google OAuth 2.0 (similar to Google Business plugin)
  • Requires youtube.force-ssl scope

Limitations

  • Community Posts require channel with 500+ subscribers (YouTube requirement)
  • Text posts limited to ~2,000 characters
  • Image posts supported
  • No direct video upload from article content (out of scope)

Credential Fields

  • access_token — Google OAuth token
  • refresh_token — For auto-refresh
  • channel_id — YouTube channel ID

Implementation

  • src/Extension/YoutubeService.php implementing MokoSuiteCrossServiceInterface
  • getMaxLength() → 2000
  • supportsMedia() → true
  • getSupportedMediaTypes()['image']

Related

  • MokoOnyx template includes YouTube in social icons layout
  • Google Business plugin can share OAuth infrastructure

Acceptance Criteria

  • Plugin created following existing plugin pattern
  • Community Post creation via API
  • Credential fields in service.xml
  • Language files complete
  • Added to pkg_mokosuitecross.xml manifest
  • Default template added to install SQL
## Summary MokoOnyx template supports YouTube as a social platform, but MokoSuiteCross has no YouTube cross-posting plugin. YouTube supports Community Posts for text/image content sharing without video upload. ## API YouTube Data API v3 — [Community Posts](https://developers.google.com/youtube/v3): - **Community posts**: `POST /youtube/v3/activities` or via Community tab API - **Video descriptions**: Update video metadata with article links (secondary use case) ### Auth - Google OAuth 2.0 (similar to Google Business plugin) - Requires `youtube.force-ssl` scope ### Limitations - Community Posts require channel with 500+ subscribers (YouTube requirement) - Text posts limited to ~2,000 characters - Image posts supported - No direct video upload from article content (out of scope) ## Credential Fields - `access_token` — Google OAuth token - `refresh_token` — For auto-refresh - `channel_id` — YouTube channel ID ## Implementation - `src/Extension/YoutubeService.php` implementing `MokoSuiteCrossServiceInterface` - `getMaxLength()` → 2000 - `supportsMedia()` → true - `getSupportedMediaTypes()` → `['image']` ## Related - MokoOnyx template includes YouTube in social icons layout - Google Business plugin can share OAuth infrastructure ## Acceptance Criteria - [ ] Plugin created following existing plugin pattern - [ ] Community Post creation via API - [ ] Credential fields in service.xml - [ ] Language files complete - [ ] Added to pkg_mokosuitecross.xml manifest - [ ] Default template added to install SQL
Sign in to join this conversation.
No labels
Priority Medium
Type Feature
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/MokoSuiteCross#141