Reputation: 43
I have posted my site URL on Facebook. Now I am coming to my site after clicking the link shared on Facebook. I want to capture the Facebook URL from where I am coming to my site. I want to get the referral site URL in my webapplication.
How do I get the referral site URL using C#?
Upvotes: 0
Views: 1229
Reputation:
You can use:
Request.UrlReferrer
More information on MSDN though I suspect there may be issues getting the referrer from Facebook, since FB connections are generally HTTPS and I'm pretty sure you don't get referrer info from HTTPS connections.
Good luck :)
Upvotes: 4