WordPress.org

Ready to get started?Download WordPress

Forums

Twitter Oembed Tweets not displaying: Maximum number per post? (2 posts)

  1. notpoppy
    Member
    Posted 1 year ago #

    I have used WordPress's built-in support for embedding Tweets via Oembed successfully many times before for small numbers of Tweets.

    However I am writing a new post which includes a larger number of Tweets (37 at present) and it intermittently fails to render them in the Twitter format, displaying the plain URL instead.

    I wonder if I'm hitting some sort of upper limit on the number of requests that can be made? Is there a maximum number of Tweets you can include via Oembed in each post? Or am I hitting some other kind of limit on requests by repeatedly saving and checking drafts of this post?

    I couldn't find any information about this on Twitter or the WordPress codex:

    http://codex.wordpress.org/Embeds

    I had a rummage through the forum and found a description of a similar problem here, but the suggested fix (copy text into plain text file, paste and publish) did not work for me:

    http://wordpress.org/support/topic/twitter-embeds-not-working-in-34?replies=20#post-2992965

  2. notpoppy
    Member
    Posted 1 year ago #

    There's some information here from Twitter which appears to be related:

    https://dev.twitter.com/docs/embedded-tweets

    Cache the oEmbed response on your server. The oEmbed endpoint is rate-limited, so make sure you are not fetching it for every pageview you render.

    Is this what's causing my problem? If so how do I "cache the oEmbed response"?

Topic Closed

This topic has been closed to new replies.

About this Topic