Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/40.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html Facebook不使用图像链接?_Html_Css_Facebook_Facebook Opengraph_Meta - Fatal编程技术网

Html Facebook不使用图像链接?

Html Facebook不使用图像链接?,html,css,facebook,facebook-opengraph,meta,Html,Css,Facebook,Facebook Opengraph,Meta,我的ASP.NET MVC网页上有一个标题,看起来像这样: <head> <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

我的ASP.NET MVC网页上有一个标题,看起来像这样:

   <head>
            <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
            <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
            <meta name="HandheldFriendly" content="true">
            <meta charset="utf-8">
            <title>MyTitle</title>
            <meta content="Återanvänd på rätt vis" property="og:title">
            <meta content="website" property="og:type">
            <meta content="http://MyWebb.se/Post/Detail/392" property="og:url">
            <meta content="http://MyWebb.se/Content/Files/PostThumbnails/392.jpeg" property="og:image">
            <meta content="Some info" property="og:description">
            <meta content="MyWebb" property="og:site_name">
            <meta content="Återanvänd på rätt vis" name="twitter:title">
            <meta content="http://MyWebb.se/Post/Detail/392" name="twitter:url">
            <meta content="Some more info." name="twitter:description">
            <meta content="http://MyWebb.se/Content/Files/PostThumbnails/392.jpeg" name="twitter:image">
            <meta content="http://MyWebb.se/Content/Files/PostThumbnails/392.jpeg" name="description">
            <meta content="keywords" name="keywords">
            <link href="/favicon.ico?v=2" rel="shortcut icon" type="image/x-icon">
            <link href="/Content/Theme/MainTheme.css" rel="stylesheet" type="text/css">
            <meta name="viewport" content="width=device-width">        
    </head>

我的头衔
当用这个工具检查它时:它确实获取图像

但是当我将url粘贴到wallpost时,它只会获取标题和描述,而不会获取图像。但是,如果拇指是方形的,则图像加载很好

为什么“非方形”图像有效?我是否应该在我所有的拇指上生成空白(带有png的透明边框),这样它们就可以得到正方形格式?还是有其他解决办法


也许是因为我缺少元数据的结束标记?但是测试工具不应该修改数据?

尝试按照Facebook开发者文档上的示例定义图像类型、宽度和高度-



另请参见此答案--听起来图像有最小尺寸。

问题在于og:图像的格式太小,在修复后,效果很好,没有说明大小

<meta property="og:image" content="http://example.com/lamb-full.jpg">
<meta property="og:image:type" content="image/jpeg">
<meta property="og:image:width" content="3523">
<meta property="og:image:height" content="2372">