Flarum/embed extension not working in Flarum 2.0
Hello everyone!
I am currently trying to use the flarum/embed extension to embed discussions on my external website. However, it seems to be incompatible with Flarum 2.0.
What I expected:
To see the embedded discussion content on my external site using the provided embed.js script or an iframe.
What I got instead:
The plugin does not render the content.
When using embed.js and data-flarum-embed-url, the container remains empty.
When attempting to use an iframe with the /embed/ path, the server returns a 500 Internal Server Error (a "Произошла ошибка при попытке загрузить страницу" message).
Accessing the API directly (/api/embed?url=...) returns {"errors":[{"status":"404","code":"not_found"}]}.
Browser console shows: Failed to load resource: the server responded with a status of 404 () (when attempting to load the embed route).
Flarum information
Flarum core: 2.0.0-rc.5
PHP version: CLI: 8.3.30, Web: 8.3.30
PHP memory limit: CLI: 4096M, Web: 4096M
MariaDB version: 11.4.7
Loaded extensions: Core, date, libxml, openssl, pcre, sqlite3, zlib, bz2, calendar, ctype, curl, hash, filter, ftp, gettext, json, iconv, SPL, pcntl, random, readline, Reflection, session, standard, mbstring, shmop, SimpleXML, tokenizer, xml, bcmath, dom, fileinfo, gd, gmp, imagick, intl, ldap, exif, mcrypt, mysqlnd, mysqli, PDO, pdo_mysql, pdo_sqlite, Phar, posix, pspell, soap, sockets, sodium, sysvmsg, sysvsem, sysvshm, tidy, xmlreader, xmlrpc, xmlwriter, xsl, zip, ionCube Loader, Zend OPcache
+-------------------------------+---------------+--------+-------+
| Flarum Extensions | | | |
+-------------------------------+---------------+--------+-------+
| ID | Version | Commit | Notes |
+-------------------------------+---------------+--------+-------+
| flarum-flags | v2.0.0-rc.5 | | |
| flarum-suspend | v2.0.0-rc.5 | | |
| flarum-approval | v2.0.0-rc.5 | | |
| flarum-tags | v2.0.0-rc.5 | | |
| fof-forum-widgets-core | 2.0.0-beta.3 | | |
| fof-user-directory | 2.0.0-beta.5 | | |
| fof-discussion-views | 2.0.0-beta.1 | | |
| fof-upload | 2.0.0-beta.5 | | |
| fof-pages | 2.0.0-beta.2 | | |
| flarum-markdown | v2.0.0-rc.5 | | |
| flarum-bbcode | v2.0.0-rc.5 | | |
| flarum-lock | v2.0.0-rc.5 | | |
| fof-byobu | 2.0.0-beta.11 | | |
| rob006-last-post-avatar | 2.0.0 | | |
| linkrobins-shoutbox | v1.4.1 | | |
| ianm-syndication | 2.0.0-beta.1 | | |
| huseyinfiliz-simple-dark-mode | 1.0 | | |
| fof-user-bio | 2.0.0-beta.4 | | |
| fof-terms | 2.0.0-beta.6 | | |
| fof-split | 2.0.0-beta.4 | | |
| fof-share-social | 2.0.0-beta.1 | | |
| fof-seo | 4.0.0-beta.7 | | |
| fof-reactions | 2.0.0-beta.9 | | |
| fof-profile-image-crop | 2.0.0-beta.1 | | |
| fof-photoswipe | v2.0.0-beta.2 | | |
| fof-move-posts | v2.0.0-beta.6 | | |
| fof-moderator-notes | 2.0.0-beta.4 | | |
| fof-merge-discussions | 2.0.0-beta.4 | | |
| fof-masquerade | 3.0.0-beta.8 | | |
| fof-links | 2.0.0-beta.4 | | |
| fof-linguist | 2.0.0-beta.1 | | |
| fof-formatting | 2.0.0-beta.2 | | |
| fof-drafts | 2.0.0-beta.7 | | |
| fof-checklist | 2.0.0-beta.1 | | |
| flarum-subscriptions | v2.0.0-rc.5 | | |
| flarum-sticky | v2.0.0-rc.5 | | |
| flarum-statistics | v2.0.0-rc.5 | | |
| flarum-messages | v2.0.0-rc.5 | | |
| flarum-mentions | v2.0.0-rc.5 | | |
| flarum-likes | v2.0.0-rc.5 | | |
| flarum-lang-russian | 2.0.50 | | |
| flarum-lang-english | v2.0.0-rc.5 | | |
| flarum-extension-manager | v2.0.0-rc.5 | | |
| flarum-emoji | v2.0.0-rc.5 | | |
| flarum-embed | v2.0.0-rc.5 | | |
| datlechin-link-preview | v2.0.0-beta.2 | | |
| datlechin-copy-links | v2.0.0-beta.1 | | |
+-------------------------------+---------------+--------+-------+
Queue driver: sync
Session driver: file
Scheduler status: Никогда не выполнялось
Mail driver: null
Debug mode: off
I would appreciate any guidance on how to fix this or if there are any alternatives for Flarum 2.0. Thank you all in advance for your answers and solutions!