They ask you to log in with your Facebook credentials. Once you do, they steal your username and password, potentially taking over your account.
Facebook’s locked profile feature is robust and server-side. It cannot be hacked by a simple browser tool or mobile app. If anyone tells you otherwise, they are either lying or trying to infect your device. fb locked profile dp viewer upd