Twitter OGP 不适用于 Laravel 和 Heroku

问题描述

我认为我没有遗漏元标记中的任何内容。当我尝试验证我在此处设置的 URL 时收到以下错误消息:https://cards-dev.twitter.com/validator

INFO:  Page fetched successfully
INFO:  4 Metatags were found
ERROR: No card found (Card error)

我想显示 OGP 图像的 URL:http://apex-profile-generator.herokuapp.com/profile/4

我的 Laravel 应用中的元标记

@section('Meta')
    <Meta name="description" content="ApexProfiler 自分のプレイを可視化しよう" />
    <Meta property="og:site_name" content="ApexProfiler" />
    <Meta property="og:title" content="{{ $user->name }}さんのProfile | ApexProfiler" />
    <Meta property="og:url" content="{{ \Illuminate\Support\Facades\URL::full() }}/{{ $user->id }}" />
    <Meta property="og:image" content="https://stats-graph.s3-ap-northeast-1.amazonaws.com/bosyu/RpXKLmsIssc6yAP1eAUGOqhPYkipwl8CHrWB8WIj.txt">
    <Meta property="og:type" content="website">
    <Meta name="twitter:card" content="summary_large_image"/>
    <Meta property='twitter:title' content="{{ $user->name }}さんのProfile | ApexProfiler"/>
    <Meta property="twitter:url" content="{{ \Illuminate\Support\Facades\URL::full() }}/{{ $user->id }}"/>
    <Meta property="twitter:image" content="https://stats-graph.s3-ap-northeast-1.amazonaws.com/bosyu/RpXKLmsIssc6yAP1eAUGOqhPYkipwl8CHrWB8WIj.txt">
@endsection

浏览的实际结果

enter image description here

我相信它肯定会显示所有必要的标签。有谁知道为什么我仍然收到错误消息?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)