You get the cookie if you click
You get the cookie if you click as well as if FB CDN displays anything on your machine. Logging in is unnecessary.
You also get it if you are served that "in-your-face" "people like it" dump which some websites hit you with.
In either case there has been no request of consent to track as required by Eu directive so FB is going to find itself on the wrong side of the Eu data protection.