嗨,我收到了以下错误(在我的所有网站),当网站试图嵌入一个twitter帐户时间表。我看了一下状态页面https://api.twitterstat.us/,它没有提到推特的任何问题.
https://cdn.syndication.twimg.com/timeline/profile?callback=__twttr.callbacks.tl_i0_profile_ingentaconnect_old&dnt=false&domain=ic.ox-dev-01.ingenta.com%3A9151&lang=en&screen_name=ingentaconnect&suppress_response_codes=true&t=1829998&tz=GMT%2B0000&with_replies=false net::ERR_ABORTED 404 fetch @ widgets.js:8
以下是嵌入代码:
<a class="twitter-timeline" data-height="340" href="https://twitter.com/ingentaconnect?ref_src=twsrc%5Etfw">Tweets by ingentaconnect</a>
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
注意,我的总部设在英国,如果它是相关的。
发布于 2022-03-11 13:28:10
这对我来说非常有效。
一个解决办法是在代码中获得https://platform.twitter.com/widgets.js;,将https://cdn.syndication.twimg.com更改为https://syndication.twimg.com,存储在网站中,当嵌入Twitter时间线时,使用修改后的版本而不是https://platform.twitter.com/widgets.js。
下面是在twitter上进行讨论的链接:
https://twittercommunity.com/t/embedded-timeline-does-not-show/168085/10
https://stackoverflow.com/questions/71438223
复制相似问题