Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/248.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
Php Twitter共享图像未显示_Php_Image_Twitter_Share - Fatal编程技术网

Php Twitter共享图像未显示

Php Twitter共享图像未显示,php,image,twitter,share,Php,Image,Twitter,Share,我想通过php在Twitter上共享图像、文本和Url。 我用了“大图像汇总卡”。为此,添加了所有元标记,但不起作用 <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta name="twitter:card" content="summary" /> <met

我想通过php在Twitter上共享图像、文本和Url。 我用了“大图像汇总卡”。为此,添加了所有元标记,但不起作用

<!DOCTYPE html>  
<html>  
<head>  
    <meta charset="utf-8" />  
    <meta name="twitter:card" content="summary" />  
    <meta name="twitter:title" content="Summary Card Implementation" />  
    <meta name="twitter:description" content="This describes about Twitter Summary Card" />  
    <meta name="twitter:image" content="https://cdn.pixabay.com/photo/2020/11/29/15/59/tower-5788197_960_720.jpg" />  
  
    <style>  
        body{background: #148c6b;color: #fff;font-family: calibri;font-size: 16px;}  
        a.tweet{color:#fff; padding:6px 20px; background:#ff6600;margin-top:40px;text-decoration:none; border-radius:5px;}  
    </style>  
      
</head>  
  
<body>  
    <h1>Twitter Summary Card</h1>  
    <p>Summary Card Implementaion on Web Page</p>  
    <div>  
        <a class="twitter-share-button"  
           href="https://twitter.com/intent/tweet?url=http://www.example.com?sid=12">  
            Tweet  
        </a>  
    </div>  
  
    <script>  
        //Twitter widget script to render tweet button
        window.twttr = (function (d, s, id) {  
            var js, fjs = d.getElementsByTagName(s)[0],  
              t = window.twttr || {};  
            if (d.getElementById(id)) return t;  
            js = d.createElement(s);  
            js.id = id;  
            js.src = "https://platform.twitter.com/widgets.js";  
            fjs.parentNode.insertBefore(js, fjs);  
  
            t._e = [];  
            t.ready = function (f) {  
                t._e.push(f);  
            };  
  
            return t;  
        }(document, "script", "twitter-wjs"));</script>  
</body>  
</html>  

正文{背景:#148c6b;颜色:#fff;字体系列:calibri;字体大小:16px;}
a、 tweet{color:#fff;padding:6px 20px;background:#ff6600;边距顶端:40px;文本装饰:无;边框半径:5px;}
推特摘要卡
在网页上汇总卡片实施情况

//用于呈现tweet按钮的Twitter小部件脚本 twttr=(函数(d,s,id){ var js,fjs=d.getElementsByTagName[0], t=window.twttr |{}; if(d.getElementById(id))返回t; js=d.createElement; js.id=id; js.src=”https://platform.twitter.com/widgets.js"; fjs.parentNode.insertBefore(js,fjs); t、 _e=[]; t、 就绪=函数(f){ t、 _e.推动(f); }; 返回t; }(文件,“脚本”、“推特wjs”);
请帮我找到可能的解决办法。
谢谢..

嗨,你能分享你的代码吗?嗨,你能分享你的代码吗?