Auto Tweet Embed

Started by vbgamer45, January 11, 2015, 03:21:09 PM

Previous topic - Next topic

vbgamer45

no idea would have to see the code.
They could be caching old tweets. Or hitting an endpoint/location that doesn't require logins yet.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Julius_2000

I'm still able to embed new tweets by using google search and then copying the status link that is provided in the dotted context menu of the google search result card.

You cannot view this attachment.
You cannot view this attachment.

This is of course a cumbersome way, especially when it comes to finding most recent content but at least it works so far.


By the way, we were able to "solve" our tweet cache issue by using a proxy inside the tweet-cache.php file.
It produces some error every once in a while, but it doesn't seem that critical.

mightygiants

Is there going to an update to address the domain change from twitter.com to x.com?

vbgamer45

Possibly to support both domains
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

vbgamer45

Update

4.0.1
+Support x.com links
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

mightygiants

Quote from: vbgamer45 on August 20, 2023, 02:40:17 PMUpdate

4.0.1
+Support x.com links

I upgraded from 3 to this new one (started prior to the "?" fix).   The tweets with "?" (which is now all tweets) still don't register (there is no error message, but the link remains untouched).  Is there something I need to do to allow the improved version to convert the links with the "?"?   I didn't remove the table entry for any of the upgrades.  Would that have caused an issue?

GantryZ

Anyone else seeing double tweets?  Everyone time someone on my forum posts now the tweet shows up twice.  I tried removing and re-installing to no avail.

I'm also seeing the following under admin -> Error Log when people embed tweets.  The log info doesn't show up every time and as far as I can tell it doesn't affect anything visually.  Edit - I went into the thread showing these errors and a bunch came up under my name.  So these errors aren't showing up based on who made the tweet, but logged in users who are trying to read the page of the thread with the tweet. 

vbgamer45

Posted an update hopefully helps with the query string tweets

If you are seeing double embeds I would check that the code is not added twice to Sources/Load.php
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

GantryZ

Just removed the previous version and installed 4.0.2 - so far not seeing the query string logs.  As a bonus, it looks like the double embeds got fixed as well.  Will report back if anything changes, thanks a ton!

Julius_2000

I regularly had these bugs when I uninstalled and re-installed older AutoTweet mods. For some reason it wasn't correctly removing its entries in the source php files which caused redundancies (double entries) after re-installation.

GantryZ

That very well could have been the issue with mine as I did uninstall and reinstall a couple times.  I also didn't check off "Remove all data associated with this modification" until the last time when it worked. 

mightygiants

Quote from: vbgamer45 on September 01, 2023, 05:34:05 PMPosted an update hopefully helps with the query string tweets

If you are seeing double embeds I would check that the code is not added twice to Sources/Load.php

Removing all data seems to have fixed the "?" issue that I had, but Tweets from the "x.com" domain are still coming back with Tweet error (does not exist)

vbgamer45

Can you provide an example?
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro


vbgamer45

Copy this file to your root directory of your forum and see if it helps
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

GantryZ

I had the same error as @mightygiants (posted the same URL) and putting in that new tweet-cache.php fixed it for me. 

GantryZ

That said I have a similar error attached with the URL below.  If I click on the URL I can load the page in Twitter fine.  If I remove everything after the ? it just shows the URL with nothing embedded, but no error.  Clicking on the link does work though in that case. 

vbgamer45

4.0.3
!Handle x.com better, api workaround.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

mightygiants

Quote from: vbgamer45 on September 03, 2023, 06:33:52 PM4.0.3
!Handle x.com better, api workaround.

Thank you, that fixed it!

GantryZ

Quote from: GantryZ on September 03, 2023, 06:30:34 PMThat said I have a similar error attached with the URL below.  If I click on the URL I can load the page in Twitter fine.  If I remove everything after the ? it just shows the URL with nothing embedded, but no error.  Clicking on the link does work though in that case. 

4.0.3 fixed this issue for me as well, thanks again!

Advertisement: