It's simple: Google has access to the referrer URL when you go onto their website. It's well known that they index these URLs.
If you go from that Facebook page straight to Google, it'll get indexed.
If you go from that Facebook page straight to Google, it'll get indexed.
http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html
> The Referer field MUST NOT be sent if the Request-URI was obtained from a source that does not have its own URI, such as input from the user keyboard.