XF 2.0 og:image problem

Emre

Well-known member
Hi,
When sharing;
1.webp

Facebook Debug mode control;
2.webp

Where is the mistake here?
ogmeta image url;
3.webp

I left this field intentionally empty. When I set the default image, the same image always appears.
 
View page source and search for og:image
Social networks will usually select the first one.
I know that. But the visual picture does not come out at first. when I use the debug function :(

Post screen;
2018-05-01_16-13-22.webp

Share screen;
2018-05-01_16-11-41.webp

Facebook debug mode use;
2018-05-01_16-14-06.webp

Do I have to use the continuous debug mode? The first share shows without pictures.
 
I do not want to use the plugin. Why do not producers help?

It's not something built into the software. The opengraph functionality provided in the core is working as expected, just not as you expect. It's not a bug, more a feature request. Perhaps make one, I'd like to see this too.
 
where am I making mistakes?
thread_view
find;
HTML:
<xf:macro template="metadata_macros" name="metadata"
        arg-description="{$fpSnippet}"
        arg-shareUrl="{{ link('canonical:threads', $thread) }}"
        arg-canonicalUrl="{{ link('canonical:threads', $thread, {'page': $page}) }}" />
change;
HTML:
<xf:if is="{$thread.FirstPost.Attachments.first().thumbnail_url}">
    <xf:macro template="metadata_macros" name="metadata"
        arg-description="{$fpSnippet}"
        arg-shareUrl="{{ link('canonical:threads', $thread) }}"
        arg-canonicalUrl="{{ link('canonical:threads', $thread, {'page': $page}) }}"
        arg-imageUrl="{{ link('canonical:attachments', $thread.FirstPost.Attachments.first()) }}" />
<xf:else/>
    <xf:macro template="metadata_macros" name="metadata"
        arg-description="{$fpSnippet}"
        arg-shareUrl="{{ link('canonical:threads', $thread) }}"
        arg-canonicalUrl="{{ link('canonical:threads', $thread, {'page': $page}) }}" />
</xf:if>
find; (I did not solve this part)
HTML:
<xf:page option="ldJsonHtml">
    <xf:if is="$thread.User.avatar_highdpi">
        <xf:set var="$image">{$thread.User.getAvatarUrl('h', null, true)}</xf:set>
    <xf:elseif is="$thread.User.avatar_date" />
        <xf:set var="$image">{$thread.User.getAvatarUrl('l', null, true)}</xf:set>
    <xf:elseif is="property('publicMetadataLogoUrl')" />
        <xf:set var="$image">{{ base_url(property('publicMetadataLogoUrl'), true) }}</xf:set>
    </xf:if>
    <xf:if is="$image">
???
HTML:
<xf:if is="{$thread.FirstPost.Attachments.first().thumbnail_url}">
        "image": "{{ link('canonical:attachments', $thread.FirstPost.Attachments.first()) }}",
        <xf:else/>
        <xf:if is="$thread.User">
        "image": "{{ (($thread.User.avatar_highdpi
            ? $thread.User.getAvatarUrl('h', null, true)
            : $thread.User.getAvatarUrl('l', null, true))
            ?: base_url(property('publicMetadataLogoUrl'), true))|escape('json') }}",
        </xf:if>
        </xf:if>
Is there someone to help? :rolleyes::unsure:
 
Top Bottom