=== Techtivus Facebook Reels Block ===
Contributors: techtivus
Tags: facebook, reels, gutenberg, social media, video
Requires at least: 6.3
Requires PHP: 7.4
Stable tag: 1.3.0
License: GPLv2 or later

Lightweight Gutenberg block for responsive Facebook Reel grids with direct Reel URLs, centrally managed Reels, best-effort Page/Profile discovery, uniform sizing, and lazy loading.

== Description ==

Techtivus Facebook Reels Block adds a dynamic Gutenberg block and a Facebook Reels admin menu.

Features:
* Paste direct public Facebook Reel URLs in the Gutenberg editor.
* Direct URLs can be separated by commas, semicolons, spaces, or separate lines.
* Admin-managed reusable Reel URL library.
* Fixed uniform Reel height by default so every Reel card matches.
* Desktop, tablet, and mobile Reel width controls.
* Desktop, tablet, and mobile Reel height controls.
* Optional 9:16 aspect-ratio sizing mode.
* Separate block/container width controls.
* Number of Reels, rows, desktop/tablet/mobile columns, gap, alignment, and border radius.
* Lazy loading using IntersectionObserver.
* Best-effort public Page/Profile Reel discovery with cache.
* No bundled third-party framework.

== Installation ==

1. Upload and activate the plugin.
2. Open Dashboard > Facebook Reels to add reusable Reel URLs and configure default Reel sizing.
3. In Gutenberg, insert the “Facebook Reels Grid” block.
4. Paste direct Reel URLs and/or enable the admin-managed Reel list.
5. Adjust Reel Size, Grid and Block Layout controls as required.

== Facebook Page/Profile discovery ==

Facebook can protect public Page/Profile /reels/ HTML with login, dynamic rendering, throttling, or anti-bot controls. Automatic discovery therefore remains best-effort. Direct Reel URLs and centrally managed Reel URLs are the reliable source/fallback.

== Changelog ==

= 1.3.0 =
* Fixed Bulk Add by adding a client-side “Add Bulk URLs” importer plus server-side import on Save.
* Improved bulk parsing for comma, semicolon, space, new-line and mixed input.
* Added uniform fixed Reel sizing as the default.
* Added desktop/tablet/mobile Reel width controls to the admin dashboard.
* Added desktop/tablet/mobile Reel height controls to the admin dashboard.
* Added per-block Reel width/height overrides in Gutenberg.
* Added reset-to-admin-default sizing control in Gutenberg.
* Added post-render sizing enforcement for Facebook SDK-injected spans and iframes.
* Preserved 9:16 aspect-ratio mode as an optional sizing mode.

= 1.2.0 =
* Added Facebook Reels admin menu and centrally managed Reel URLs.
* Added bulk Reel URL input supporting commas and separate lines.
* Improved Page/Profile discovery attempts and caching.

= 1.1.0 =
* Switched frontend rendering to Facebook XFBML/SDK rendering.

= 1.0.1 =
* Improved Gutenberg block wrapper compatibility and URL normalization.
