Forum
Twitter Feed not retrieving fresh tweets
Hi
First time using Perch here - my web mates have raved about it for years so thought I'd give it a try - very impressive!
Now to the issue :-)
I am working on a site which embeds the latest tweet from an account.
At the time of building the account, the client didn't have use The Twitter so I just created an App with my account, popped the consumer key & secret in and away I went - it showed the latest tweet and for a while, life was beautiful.
Now the client has created a Twitter account - I logged into it, created another Twitter Feed app and updated the settings in Perch with the new user. However, now the Feed doesn't retrieve any new tweets when I click 'Get Tweets'. It just shows the old ones from my original account.
Here is my Diagnostics Report:
Perch: 2.8.29, PHP: 5.3.28, MySQL: mysqlnd 5.0.8-dev - 20102224 - $Id: 731e5b87ba42146a687c29995d2dfd8b4e40b325 $, with PDO
Server OS: Linux, cgi-fcgi
Installed apps: content (2.8.29), assets (2.8.29), categories (2.8.29), perch_forms (1.8.3), perch_twitter (3.5.1)
App runtimes: <?php $apps_list = array( 'content', 'categories', 'perch_forms', 'repeaters', 'perch_twitter' );
PERCH_LOGINPATH: /evolve/perch
PERCH_PATH: /home/sites/michaelmcg.co.uk/public_html/evolve/perch
PERCH_CORE: /home/sites/michaelmcg.co.uk/public_html/evolve/perch/core
PERCH_RESFILEPATH: /home/sites/michaelmcg.co.uk/public_html/evolve/perch/resources
Image manipulation: GD
PHP limits: Max upload 64M, Max POST 64M, Memory: 128M, Total max file upload: 64M
F1: 2edba60ed1f613d6dd804feb202456a2
Resource folder writeable: Yes
HTTP_HOST: www.michaelmcg.co.uk
DOCUMENT_ROOT: /home/sites/michaelmcg.co.uk/public_html
REQUEST_URI: /evolve/perch/core/settings/diagnostics/
SCRIPT_NAME: /evolve/perch/core/settings/diagnostics/index.php
tweet.html Perch Template:
<div class="tweet">
<!--<a href="https://twitter.com/<perch:twitter id="tweetUser" />" class="twitter-follow-button" data-show-count="false" data-size="large" data-show-screen-name="false">Follow @<perch:twitter id="tweetUser" /></a>
<img src="<perch:twitter id="tweetUserAvatar" encode="false" />" alt="<perch:twitter id="tweetUser" />" class="avatar" />
<p class="user"><strong><perch:twitter id="tweetUserRealName" /></strong>
<br />@<perch:twitter id="tweetUser" /></p>-->
<i class="fa fa-twitter fa-5" aria-hidden="true"></i>
<blockquote>
<p>
<perch:twitter id="tweetHTML" encode="false" />
</p>
</blockquote>
<!--<div class="timestamp"><perch:twitter id="tweetDate" format="j M y h:i a" /></div>
<div class="intents">
<a class="twitter-reply" href="https://twitter.com/intent/tweet?in_reply_to=<perch:twitter id="tweetTwitterID" />">Reply</a>
<a class="twitter-retweet" href="https://twitter.com/intent/retweet?tweet_id=<perch:twitter id="tweetTwitterID" />">Retweet</a>
<a class="twitter-fav" href="https://twitter.com/intent/favorite?tweet_id=<perch:twitter id="tweetTwitterID" />">Favorite</a>
</div>-->
</div>
Is there anything else I should provide to help things here?
Thank you : )
In the Twitter app, go to Settings and check the Force Reathentication box. That should then ask you to log in with the new account.
Thanks for the reply, Draw :-)
I have actually tried this previously. I tried again a few minutes ago and still no success. It's still displaying tweets from the original account I used.
Happy to provide login details privately if it'd help you out.
Thanks again :-)
The old tweets won't go away if they've already been downloaded, but it should be fetching new ones.
What happens when you click the button to fetch the new tweets?
Hi Drew - apologies for my delay.
When I click 'Get Tweets' I see the following:
This is an old retweet of mine so it's just not pulling in anything.
I'm perplexed.
The simplest thing might be to delete the
perch2_twitter
database tables and let the app reinstall itself.I think I might just have to. I'll keep you posted - thanks for taking the time to look through this and advise :-)
Resolved!
I truncated the tweets table as you suggested.
Returned to the 'Listing Tweets' page and it was blank - good sign!
Ran 'Get Tweets' and it pulled them all in from the new account - woop woop!
Thanks, Drew! :-)