tag:blogger.com,1999:blog-6653558328125881331.post5538977344367471334..comments2024-03-05T00:00:34.263-05:00Comments on Ben Collins: The Facebook Like button PITA: fb_xd_fragment=Ben Collinshttp://www.blogger.com/profile/16641016264284463086noreply@blogger.comBlogger10125tag:blogger.com,1999:blog-6653558328125881331.post-59021002090758354212011-06-04T17:02:28.248-04:002011-06-04T17:02:28.248-04:00Hi Ben, check this blog post too, i've found a...Hi Ben, check this blog post too, i've found another URL different form the standard fb_xd_fragment URL that we have been seeing. It also takes visitors to a blank page and requires an additional 301 redirect. <a href="http://alecgordon.wordpress.com/2011/06/04/fb_xd_fragment/" rel="nofollow">fd_xd_fragment</a><br /><br />- <a href="http://www.alecgordon.wordpress.com" rel="nofollow">Alec Gordon</a>Travel Gaiahttps://www.blogger.com/profile/05943876663508126406noreply@blogger.comtag:blogger.com,1999:blog-6653558328125881331.post-85472323442865252152011-05-04T01:54:54.015-04:002011-05-04T01:54:54.015-04:00Hi Ben
Thanks for this. I like your solution - o...Hi Ben<br /><br />Thanks for this. I like your solution - one question.<br /><br />Forgive me if I have misunderstood the source of the problem at some level but I am working in "panic mode" since I discovered this in my Analytics and want to move fast to avoid SEO penalties. <br /><br />It is my understanding that some versions of IE are redirecting on pages with like buttons to the same page with the fb_xd_fragment variable appended.<br /><br />If that is the case, won't an apache redirect send them into a never-ending loop?<br /><br />Thanks<br />JamesAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-6653558328125881331.post-48439575073201195152011-04-19T15:14:02.109-04:002011-04-19T15:14:02.109-04:00Hi,
Your code is redirecting, but appending the c...Hi,<br /><br />Your code is redirecting, but appending the complete server path of the vhost to the url:<br /><br />http://www.server.pt/index.php?fb_xd_fragment= <br /><br />redirects to <br /><br />http://www.server.pt/sites/internos/directobras/html/index.php<br /><br />any thoughts?<br /><br />thanks for any help,<br /><br />Gustavo MeloGustavo Melohttps://www.blogger.com/profile/02472271912923081751noreply@blogger.comtag:blogger.com,1999:blog-6653558328125881331.post-74977284845951692802011-04-19T15:12:46.890-04:002011-04-19T15:12:46.890-04:00Hi,
Your code is redirecting ok, but appending th...Hi,<br /><br />Your code is redirecting ok, but appending the server path to the vhost:<br /><br /><br />http://www.server.pt/index.php?fb_xd_fragment= <br /><br />redirects to <br /><br />http://www.server.pt/sites/internos/directobras/html/index.php<br /><br />any thoughts?<br /><br />thanks for any help,<br /><br />Gustavo MeloGustavo Melohttps://www.blogger.com/profile/02472271912923081751noreply@blogger.comtag:blogger.com,1999:blog-6653558328125881331.post-11946251123868041972011-04-07T11:57:55.403-04:002011-04-07T11:57:55.403-04:00We have written up a little tutorial on how to fix...We have written up a little tutorial on how to fix the problem: http://www.siliconbeachtraining.co.uk/free-resources/strange-code-google-analytics-training/<br />this will fix both the duplicate content problem and the Google Analytics problemNathanhttp://www.siliconbeachtraining.co.uk/noreply@blogger.comtag:blogger.com,1999:blog-6653558328125881331.post-76172641029070848812011-01-09T17:58:48.090-05:002011-01-09T17:58:48.090-05:00Ben may I ask you something? Your solution is perf...Ben may I ask you something? Your solution is perfect if you can access the configuration file of your web server, but what do you suggest for people like me using blogger?<br /><br />thankstotohttps://www.blogger.com/profile/16568208301750253200noreply@blogger.comtag:blogger.com,1999:blog-6653558328125881331.post-7557395526989037052010-10-28T10:23:54.229-04:002010-10-28T10:23:54.229-04:00Oh, something I forgot: in my example you'll o...Oh, something I forgot: in my example you'll obviously want<br /><br />header( 'HTTP/1.1 301 Moved Permanently' );<br /><br />as well, to instruct search engines to ignore the URI containing the offending query string.Rob Kaper`http://www.robkaper.nl/noreply@blogger.comtag:blogger.com,1999:blog-6653558328125881331.post-43754416316087502602010-10-28T10:19:30.312-04:002010-10-28T10:19:30.312-04:00Good one, I've been wondering where this came ...Good one, I've been wondering where this came from and couldn't reproduce it (no IE around).<br /><br />For those who can't use mod_rewrite, the same results can be created in PHP with the following snippet of code:<br /><br />if ( array_key_exists( 'fb_xd_fragment', $_GET ) ) {<br /> header( "Location: ". $_SERVER['SCRIPT_URL'] );<br /> exit();<br />}<br /><br />Put it on top of your page (or init script, or whatever).<br /><br />Of course even better would be to only unset the fb_xd_fragment path and redirect with the rest of the query string intact.Rob Kaperhttp://www.robkaper.nl/noreply@blogger.comtag:blogger.com,1999:blog-6653558328125881331.post-20252695337228263262010-09-21T11:56:33.151-04:002010-09-21T11:56:33.151-04:00Thanks Stephan. I did in fact do a few of the thin...Thanks Stephan. I did in fact do a few of the things suggested in order to fix things up, but I prefer keeping the apache mod_rewrite just o make sure the request gets to a working page. As you know, even a few missed visitors can cost you money :)Ben Collinshttps://www.blogger.com/profile/16641016264284463086noreply@blogger.comtag:blogger.com,1999:blog-6653558328125881331.post-31153656571540134362010-09-21T10:36:09.233-04:002010-09-21T10:36:09.233-04:00Hi Ben, check this blog post. It explains where th...Hi Ben, check this blog post. It explains where the problem is coming from and suggests ways to fix it without changing your server settings: <a href="http://www.searchmarketingman.com/2010/09/how-to-fix-like-button-bug.html" rel="nofollow">How to fix the Like button bug</a>Stéphane Bottinehttps://www.blogger.com/profile/08796978479000088546noreply@blogger.com