Git Product home page Git Product logo

Comments (4)

cilsilver avatar cilsilver commented on June 27, 2024

Same has me, having same problem for over 4hours.

protected function loadTweetContent()
{
$json = json_decode(Http::get('https://api.twitter.com/1/statuses/oembed.json', function($http){
$http->data($this->getProperties());
})->body);

    return $json->html;
}

}

from twitter-plugin.

daftspunk avatar daftspunk commented on June 27, 2024

This might occur when Twitter's API is down, we should add some exception handling to grab it.

from twitter-plugin.

bnordland avatar bnordland commented on June 27, 2024

This also uses Twitter API Version 1 which is no longer supported:
https://api.twitter.com/1/statuses/ returns: The Twitter REST API v1 is no longer active. Please migrate to API v1.1. https://dev.twitter.com/docs/api/1.1/overview.

Rather than a Tweet ID, it now takes a tweet URL: https://www.hitchhq.com/twitter/activities/get-statusesoembed-575981a88e2e411000b8e5d4

Updated documentation: https://dev.twitter.com/rest/reference/get/statuses/oembed
Example: ttps://publish.twitter.com/oembed?url=https%3A%2F%2Ftwitter.com%2FInterior%2Fstatus%2F507185938620219395

I would recommend switching over to the new API at the same time as adding extra error handling.

from twitter-plugin.

LukeTowers avatar LukeTowers commented on June 27, 2024

Closing as it has been over a month since any activity on this occurred.

from twitter-plugin.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.