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

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -