bug: Facebook plugin ignores media attachments for feed posts #233
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
FacebookService::publishFeed()only postsmessageand optionallinkparameters to the/{page_id}/feedendpoint. It never uses the$mediaarray despite declaringsupportsMedia(): trueandgetSupportedMediaTypes(): ['image', 'video', 'gif'].The media array is correctly passed from
CrossPostDispatcherand used for Reels/Stories content types, but feed posts ignore it entirely.Expected behavior
When
$mediais non-empty for feed posts:POST /{page_id}/photoswithpublished=falseattached_media/{page_id}/photoswithmessageCurrent behavior
Feed posts are always text-only (with optional link). The article's intro image from Joomla is never attached.
Affected file
source/packages/plg_mokosuitecross_facebook/src/Extension/FacebookService.phpMethod:
publishFeed()(line 64)Branch created:
feature/233-bug-facebook-plugin-ignores-media-attach