Gloriaellis
New Member
Here is a question which describes what I want to do:Facebook "Like" button not "liking" content inside secured folder?In short, I want to have a like button on pages that only authenticated users can visit. The purpose of this is that the link can be shared to facebook but when people click the link inside Facebook they will be redirected to a "You must login to see this" page.Anyway the way I thought about doing it was to look at the useragent from Facebook and instead of redirecting or allowing the page to be displayed, I would just write a seperate response containing the open graph meta data but none of the actual page HTML. In my mind at least, this bypasses the problem of useragent spoofing because no HTML will be displayed to them, so they're still not getting access to the content. I'm just not sure how Facebook feels about this, is it "gaming" the system? Even better, is there another reliable way of doing this?Thanks