Hello everyone, today i have received an email from google asking to specify as acceptedAnswer or suggestedAnswer

https://developers.google.com/search/docs/data-types/qapage

if I view page source code everything is looking okay.

<script type="application/ld+json">[{"@context":"http:\/\/schema.org","@type":"QAPage","publisher":{"@type":"Organization","name":"Forum","url":"https:\/\/www.site.com\/ask","description":"forum.","logo":"https:\/\/www.site.com\/ask\/assets\/logo.png"},"image":"https:\/\/i.ytimg.com\/vi\/0Lafs\/hqdefault.jpg","datePublished":"2020-04-04T16:18:15+00:00","description":"ra?","headline":"ra?","url":"https:\/\/www.site.com\/ask\/d\/38-ra","mainEntity":{"@type":"Question","name":"ra","text":"\u003Cp\u003E\u003Cspan data-s9e-mediaembed=\"youtube\" style=\"display:inline-block;width:100%;max-width:640px\"\u003E\u003Cspan style=\"display:block;overflow:hidden;position:relative;padding-bottom:56.25%\"\u003E\u003Ciframe allowfullscreen=\"\" loading=\"lazy\" scrolling=\"no\" style=\"background:url(https:\/\/i.ytimg.com\/vi\/0Lafs\/hqdefault.jpg) 50% 50% \/ cover;border:0;height:100%;left:0;position:absolute;width:100%\" src=\"https:\/\/www.youtube.com\/embed\/0Lafs\"\u003E\u003C\/iframe\u003E\u003C\/span\u003E\u003C\/span\u003E\u003C\/p\u003E\n\n\u003Cp\u003Era?\u003C\/p\u003E\n","dateCreated":"2020-04-04T16:18:15+00:00","author":{"@type":"Person","name":"User"},"answerCount":2,"acceptedAnswer":{"@type":"Answer","text":"\u003Cblockquote class=\"uncited\"\u003E\u003Cdiv\u003E\u003Cp\u003E\u003Ca href=\"https:\/\/www.site.com\/ask\/d\/38\/1\" class=\"PostMention\" data-id=\"140\"\u003EUser\u003C\/a\u003E ra?\u003C\/p\u003E\u003C\/div\u003E\u003C\/blockquote\u003E\n\n\u003Cp\u003Esituation\u003C\/p\u003E \n","dateCreated":"2020-06-18T13:56:01+00:00","url":"https:\/\/www.site.com\/ask\/d\/38-ra\/4","author":{"@type":"Person","name":"V"},"upvoteCount":0},"suggestedAnswer":[]}},{"@context":"http:\/\/schema.org","@type":"BreadcrumbList","itemListElement":{"@type":"ListItem","name":"Stars","item":"https:\/\/www.site.com\/ask\/t\/stars","position":4}},{"@context":"http:\/\/schema.org","@type":"WebSite","url":"https:\/\/www.site.com\/ask\/","potentialAction":{"@type":"SearchAction","target":"https:\/\/www.site.com\/ask\/?q={search_term_string}","query-input":"required name=search_term_string"}}]</script>

but as per google dev site example it should look like

<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "QAPage",
"mainEntity": {
"@type": "Question",
"name": "How many ounces are there in a pound?",
"text": "I have taken up a new interest in baking and keep running across directions in ounces and pounds. I have to translate between them and was wondering how many ounces are in a pound?",
"answerCount": 3,
"upvoteCount": 26,
"dateCreated": "2016-07-23T21:11Z",

is something wrong with my website it is showing extra https:\/\/www.site.com\/ ?

i have checked google webmaster error log its mentioning below code as red colour

"Question","name":"ra","text":"\u003Cp\u003E\u003Cspan data-s9e-mediaembed=\"youtube\" style=\"display:inline-block;width:100%;max-width:640px\"\u003E\u003Cspan style=\"display:block;overflow:hidden;position:relative;padding-bottom:56.25%\"\u003E\u003Ciframe allowfullscreen=\"\" loading=\"lazy\" scrolling=\"no\" style=\"background:url(https:\/\/i.ytimg.com\/vi\/0Lafs\/hqdefault.jpg) 50% 50% \/ cover;border:0;height:100%;left:0;position:absolute;width:100%\" src=\"https:\/\/www.youtube.com\/embed\/0Lafs\"\u003E\u003C\/iframe\u003E\u003C\/span\u003E\u003C\/span\u003E\u003C\/p\u003E\n\n\u003Cp\u003Era?\u003C\/p\u003E\n","dateCreated":"2020-04-04T16:18:15+00:00","author":{"@type":"Person","name":"User"},"answerCount":1

I do not have s9e-mediaembed extension I am using FoF embed .. is google showing the error because of this?

I am using the latest SEO and FoF Best answer, FoF Site map extensions

am I missing anything?

//Update issues resolved after updating both question and answer

    Hari the backslash in the url is just because it's encoded as a string in a JSON object. If you parse the JSON object, \/ is just /.

    //Update issues resolved after updating both question and answer

    Hi, when I paste link from my forum to a post on my Facebook page I don't see the first image on Facebook post.

    How can I automatically get the first image from the first post when I share a Facebook post?

    Thank you in advance

    6 days later

    Great extension!

    It seems that headline tag uses the comment, and not the discussion headline itself. Example.

    The headline should be: [RESOLVED]2G, 3G and 4G Nationwide Data issues - 23 June 2020

    Additionally, seems like there's a problem with the logo tag.

    a month later

    can you update to 0.1.0-beta.13 please
    cant install it.

    ssh error is "Carbon 1 is deprecated, see how to migrate to Carbon 2."

      sinanisler the carbon message is not an error, it's just a warning for Flarum developers. You can safely ignore that yellow line about Carbon.

      Are there any other error in the Composer output?

        2 months later

        Update 1.3 - The extension that is extendable

        Update time! This is something I had in my mind for a while: making it possible for other extensions to use the features in this extension!

        Yes! That's correct. You can now use a class called \V17Development\FlarumSeo\Extend to set SEO parameters and have all the benefits from the SEO extension.

        So how would you use it?
        Below you can find an example code. You can find all functions on the knowledge base article or on GitHub.

        // You can find many more examples here: https://community.v17.dev/knowledgebase/22-extending-the-seo-extension
        if(class_exists("V17Development\FlarumSeo\Extend")) {
            \V17Development\FlarumSeo\Extend::setTitle("New example title");
            \V17Development\FlarumSeo\Extend::setDescription("This is a great description that will be 'dotted' after ");
            \V17Development\FlarumSeo\Extend::setKeywords(["keyword 1", "flarum", "site", "blog"]);
            \V17Development\FlarumSeo\Extend::setCanonicalUrl("/d/5-example-topic");
            // And many more...
        }

        Changelog:

        • The extension is now ready to be extended by other extensions
        • Fix invalid meta caused by faulty social image RegEx: v17development/flarum-seo33

        How to update?

        To update, run:

        composer update v17development/flarum-seo

        To install, run:

        composer require v17development/flarum-seo

        If there are any issues, or you have any feedback, let me know on GitHub! Also, pull requests are also appreciated 🙂

          JasperVriends i updated the extension but it gave an error "Something went wrong while loading the page"? Is there somewhere in the plugin files that I need to change? I don't know much about codes.

          [2020-09-29 12:04:12] production.ERROR: Exception: V17Development\FlarumSeo\Extend::finish(..): Container was not yet initialized. in /var/www/flarum/vendor/v17development/flarum-seo/src/Extend.php:196
          Stack trace:
          #0 /var/www/flarum/vendor/v17development/flarum-seo/src/Extend.php(186): V17Development\FlarumSeo\Extend::throwError()
          #1 /var/www/flarum/vendor/v17development/flarum-seo/src/Listeners/BeforePageRenders.php(24): V17Development\FlarumSeo\Extend::finish()
          #2 /var/www/flarum/vendor/illuminate/container/Container.php(1069): V17Development\FlarumSeo\Listeners\BeforePageRenders->V17Development\FlarumSeo\Listeners\{closure}()
          #3 /var/www/flarum/vendor/illuminate/container/Container.php(1012): Illuminate\Container\Container->fireCallbackArray()

            JasperVriends Unfortunately. I don't have a github account.
            When I want to go back to the old version . composer require v17development/flarum-seo:1.2.1 command does not work.

              Forumist [deleted] Could you confirm the update below fixes your issue?

              Update 1.3.1 - Fixing the update

              Okay, so let's explain what happened in the previous update. I tried (a bit on a hacky way) to process all the SEO properties as last function before rendering the page. Aparently it worked well on localhost and on my production forums without any issues, but it didn't on some other production forums.

              Therefore I've now updated the position when the ->finish() function is called. The extender (Extend.php) has left untouched and will still work for other extensions to extend SEO. It might be that, in situations when the SEO extension was called earlier then other extensions, the SEO extender isn't processed (the reason is that it was already processed and the tags have been written to the page).

              I'm not very satisfied with reverting some code, so I'll try to open a PR into for the Flarum core later this week to make sure an event fires after all the other extensions are finished updating the content of the webpage. Hopefully it will be merged into BETA 14 and the previous SEO update has its full potential in this version 🙂 There is an issue from someone also having the same issue: flarum/core2239

              Changelog:

              • Fixed v17development/flarum-seo34 . The description was set as headline. Also added a parameter to the setTitle API and removed a parameter from and setDescription in Extend.php
              • Reverted some code because it was breaking on some forums 🙁

              How to update?

              To update, run:

              composer update v17development/flarum-seo

              To install, run:

              composer require v17development/flarum-seo

              If there are any issues, or you have any feedback, let me know on GitHub! Also, pull requests are also appreciated 🙂

                MikeJones wouldn't this be a feature that should be part of Upload itself? It seems like the "Complete image preview template" indeed doesn't any ability to have alt/label values right now, but this could be added. Using a custom template to insert the image as markdown or bbcode would also be an option, and would give access to the alt and title attributes.

                  8 days later