Gaining entry to the Royal Palace in Free Realms starts with a quest. Head south of "Danger Peaks" and speak to the royal courier to begin the quest called "Local Hero."
After you help the courier, return to Sanctuary and assist the people there. Keep helping out, and eventually you'll earn the pass that grants you access to the palace.