登录  /  注册
未找到通过 Twitter 分享的结果(仅在移动设备上分享):错误
P粉486743671
P粉486743671 2023-12-07 10:54:26
[PHP讨论组]

我有一个简单的 Facebo ok、Twitter 和 Pinterest 分享按钮

<a href="<?php echo "$base_url/share.php"; ?>" class="btn btn-default btn-face book btn-icon btn-block" target="popup" 
onclick="window.open('<?php echo "$base_url/share.php?id=$id&share=fb&type=article"; ?>','popup','width =600,height=600'); return false;"><i class="fab fa-face book"></i> <span class="post-sharing__label d-none d-sm-inline-block">Share on Face book</span></a>

<a href="<?php echo "$base_url/share.php"; ?>" class="btn btn-default btn-twitter btn-icon btn-block" target="popup" 
onclick="window.open('<?php echo "$base_url/share.php?id=$id&share=tw&type=article"; ?>','popup','width=600,height=600'); return false;"><i class="fab fa-twitter"></i> <span class="post-sharing__label d-none d-sm-inline-block">Share on Twitter</span></a>

<a href="<?php echo "$base_url/share.php"; ?>" class="btn btn-default btn-twitter btn-icon btn-block" target="popup" 
onclick="window.open('<?php echo "$base_url/share.php?id=$id&share=tw&type=article"; ?>','popup','width=600,height=600'); return false;"><i class="fab fa-twitter"></i> <span class="post-sharing__label d-none d-sm-inline-block">Share on Twitter</span></a>

当用户单击共享时,它会转到名为 share.php 的 php 文件;该文件获取有关将要共享的页面的信息。

if ($share =="tw"){     

header("Location: http://twitter.com/share?text=$seo_description&url=$share_url");
die();
}

在桌面上,它可以正常工作,但在移动设备上,我收到以下错误

The terms you entered did not bring any results, please try again later.

Facebo k 和 Pinterest 在移动设备上运行,我正在苦苦思索为什么我会得到这个。

我在手机上登录的 Twitter 帐户与我在电脑上登录的帐户相同。

我从这个问题中得到了我的网址的信息

P粉486743671
P粉486743671

热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 意见反馈 讲师合作 广告合作 最新更新
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习
PHP中文网抖音号
发现有趣的

Copyright 2014-2024 //m.sbmmt.com/ All Rights Reserved | php.cn | 湘ICP备2023035733号