php - Avoid Facebook's share link redirection -


i have empty page, 1 custom tracking function, redirect facebook.

http://example.com/promotion/?promotion-id=12

what's inside link is:

if(isset($_get['promotion-id'])) {    addtracker($_get['promotion-id']); } header('location: http://facebook.com/promotionexample') ; 

the problem is, when share link http://example.com/promotion/?promotion-id=12 facebook, facebook processed , change link directly http://facebook.com/promotionexample.

i understand mechanism share bit.ly or other url shortener. there way avoid it?


Comments

Popular posts from this blog

sql - Time in datatime field -

javascript - How to split the success output from an Ajax post? -

java - sharing object across different classes -