It's not really "dangerous", it is just that you give a bit more information to FB/Twitter/$SocialCompany than you thought you would.
While, I usually logout of FB or Twitter, I have a few adblock rules to block them on other webpages. It works fairly well... If I want to like and share, I believe I can do it manually...