I have an empty page, that does one custom tracking function, then redirect back to facebook.
http://example.com/promotion/?promotion-id=12
What's inside the link is:
if(isset($_GET['promotion-id'])) {
addTracker($_GET['promotion-id']);
}
header('Location: http://facebook.com/promotionexample') ;
The problem is, when I share the link http://example.com/promotion/?promotion-id=12
to facebook, Facebook processed it and change the link directly to http://facebook.com/promotionexample
.
I understand that this is a mechanism to share bit.ly or any other url shortener. But is there any way to avoid it?