rainlab / twitter-plugin Goto Github PK
View Code? Open in Web Editor NEWTwitter integration
License: MIT License
Twitter integration
License: MIT License
See https://dev.twitter.com/cards/overview for more details - being able to use these as callback methods out of the box in blog posts would be even more handsome.
After updating a project that was using the Twitter plugin, I get the following error on the front end:
Class 'HTML' not found
I also get this error in the CMS when trying to inspect the component:
"The component 'RainLab\Twitter\Components\EmbedTimeline' does not contain a method 'getLangOptions'." on line 278 of /home/vagrant/sites/test/www/modules/cms/Classes/ComponentBase.php
I have build 337 of OctoberCMS and version 1.0.3 of the Twitter plugin. Everything is up to date according to the dashboard.
I haven't been able to find yet where the mysterious HTML class went but I assume the code was refactored and this wasn't updated yet. For the getLangOptions error, is that related to the recent multi-lingual updates that have been done?
I know this is a relatively simple plugin and it would be great if someone has a quick fix. Unfortunately I don't have much time right now to look into it with a deadline looming...
Thanks!
Due to values being switched to boolean if 1 or 0, tweet-limit doesn't allow you to set it to 1 and therefore returns all.
This isn't the most elegant way of fixing this, but I added
if($key != 'tweet-limit')
within
switch ($value) {
case '1':
if($key != 'tweet-limit')
$value = 'true';
break;
case '0':
$value = 'false';
break;
default:
$value = $value;
break;
}
To fix the issue.
"The component 'RainLab\Twitter\Components\FollowButton' does not contain a method 'getLangOptions'." on line 278 of /var/www/modules/cms/classes/ComponentBase.php
Build 384
In Components\EmbedTimeline.php...
Line 113, function getLangOptions() needs to be public, not protected.
Lines 4 & 152, OctoberCMS case-sensitive alias for October\Rain\Support\Facades\Html class is "Html", not "HTML".
Undefined property: stdClass::$html
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;
}
}
Hi, I integrated your plugin successfully into our October CMS web site (www.pentathlongb.org) a few weeks ago to display our tweets, but now tweets from @twitterapi are being displayed instead.
Is there anything that can be done to fix the problem please?
Thanks,
Andy
So you can't find any widget ID in your twitter account settings page.
"Widgets
Embedded timelines can no longer be managed through account settings on twitter.com. Going forward, you must configure your embeds on publish.twitter.com."
Twitter Settings page just includes 4 fields for the various api auth details, no instructions for how to obtain those details.
Once you set the following config the plugin no longer works.
` /*
|--------------------------------------------------------------------------
| Default Cache Store
|--------------------------------------------------------------------------
|
| This option controls the default cache connection that gets used while
| using this caching library. This connection is used when another is
| not explicitly specified when executing a given caching function.
|
*/
'default' => 'database',`
Not really your issue per se, though Twitter's recent updates do somewhat kneecap your component functionality. An embedded timeline I set up on a site a little over a week ago (when I could still get the Widget ID) is still functioning, but can't really move forward with no way to acquire that ID for a new embedded timeline...
Can you put a timer between twitter feed calls?
I am getting "Error requesting Twitter API: name lookup timed out"
Any example what exactly to add to octobercms page so it will display twitter timeline properly in for example 5 rows (last 5 tweets from some account).
No answer to this guy question as well https://octobercms.com/plugin/rainlab-twitterfeed#reviews
Also link to API here is dead https://github.com/rainlab/twitter-plugin/blob/master/readme.md
See favorites API documentation for the information about available fields.
Please update.
Thanks!
This is a question rather than an issue. Are there any plans or is it possible to add twitter lists as an option to integrate into the profile?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.