You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The oEmbed API endpoint for embedding tweets has changed.
In (VCO.Media.Twitter.js)[https://github.com/NUKnightLab/StoryMapJS/blob/master/source/js/media/types/VCO.Media.Twitter.js] line 31, the code reads api_url = "https://api.twitter.com/1/statuses/oembed.json?id=" + this.media_id + "&omit_script=true&include_entities=true&callback=?";
Now the pattern would be api_url = https://publish.twitter.com/oembed?url=" + this.media.id, e.g. https://publish.twitter.com/oembed?url=https://twitter.com/Interior/status/463440424141459456
I haven't looked to see what the difference is in the returned JSON, hence why I'm filing as an issue rather than forking and creating a PR.
The text was updated successfully, but these errors were encountered:
The oEmbed API endpoint for embedding tweets has changed.
In (VCO.Media.Twitter.js)[https://github.com/NUKnightLab/StoryMapJS/blob/master/source/js/media/types/VCO.Media.Twitter.js] line 31, the code reads
api_url = "https://api.twitter.com/1/statuses/oembed.json?id=" + this.media_id + "&omit_script=true&include_entities=true&callback=?";
Now the pattern would be
api_url = https://publish.twitter.com/oembed?url=" + this.media.id
, e.g. https://publish.twitter.com/oembed?url=https://twitter.com/Interior/status/463440424141459456I haven't looked to see what the difference is in the returned JSON, hence why I'm filing as an issue rather than forking and creating a PR.
The text was updated successfully, but these errors were encountered: