Welcome to DU! The truly grassroots left-of-center political community where regular people, not algorithms, drive the discussions and set the standards. Join the community: Create a free account Support DU (and get rid of ads!): Become a Star Member Latest Breaking News Editorials & Other Articles General Discussion The DU Lounge All Forums Issue Forums Culture Forums Alliance Forums Region Forums Support Forums Help & Search
7 replies = new reply since forum marked as read
Highlight: NoneDon't highlight anything 5 newestHighlight 5 most recent replies
Strip unwanted Facebook tracking code from links (Original Post) LVZ May 23 OP
K'n'R justaprogressive May 23 #1
I don't understand how to use it? barbtries May 23 #2
Example LVZ May 23 #3
minor update LVZ May 31 #4
Facebook problem with FIX Las Vegas Mixx May 31 #5
So, sometimes a (Facebook) bug can also be a solution ... n/t LVZ May 31 #6
For website owners, add this to your .htaccess file LVZ Thursday #7

Las Vegas Mixx

(317 posts)
5. Facebook problem with FIX
Sat May 31, 2025, 01:42 PM
May 31

The redirect link works great except that Facebook does not add a thumbnail image to the post.
This may not be important but if it is, I have a fix (Facebook hack) that restores the post thumbnail.

Note that post #1 has no thumbnail image but post #3 has the image with the same redirect link.
The trick is to post the original link (#2). Then edit your post to erase the original link replacing it with the redirect link. Facebook will keep the old thumbnail image even though the link URL has changed.


LVZ

(969 posts)
7. For website owners, add this to your .htaccess file
Thu Jun 5, 2025, 12:40 PM
Thursday

For your own website, add this near top of .htaccess file to strip Facebook tracking.


< IfModule mod_rewrite.c >
RewriteEngine On
RewriteCond %{QUERY_STRING} ^(.*?)(&?fbclid=[a-zA-Z0-9_-]+)$
RewriteRule ^(.*)$ /$1?%1 [L,NE,R=301]
< /IfModule >

NOTE: remove space after/before ... < and > characters ...

in use example: https://1-DOT.com/poplinks/?x&fbclid=REMOVE

Latest Discussions»Culture Forums»Open Source and Free Software»Strip unwanted Facebook t...