In my opinion, only experience and being careful can protect our FB account from being hacked. Never click on any suspicious URLs, porn content, unusual private inbox message, strange website ... If you do really want to view those links, right click, copy the link, then open incognito browser to view it. If it requires FB login to view, then dismiss it immediatly
You could also use avast free (or paid version). It is protecting me quite good