Sharing links on social media is one of the best ways to gain traction and clout. Let’s be straight: it sucks when Facebook has banned your site for occasionally sharing an artful nude or an emotional rant. The ban can be revoked but it takes time. You can find plenty of videos on how to do it.
I want to share how I went around it with PHP.
- Create a fresh subdomain and create an index.php there.
- Grab the tail of the URL:
$tail = parse_url($url)[“path”];
- Since Facebook recognizes 301 redirects, that doesn’t work. You can, however, put your target site in a frameset like so:
<frameset cols="100%"> <frame src="http://geek.creativechoice.org/"<?php echo $tail; ?>> </frameset>
- Add the favicon to your site like this:
<head> <link rel="icon" type="image/png" href="favicon.png"> </head>
That’s all. It won’t be as fast as the original site, but it works until facebook revokes the block.