2006 9-5 estate - can't open my fuel cap!

Hi, I stopped at the petrol station today with very low fuel but couldn't get the fuel cap open. I tried locking/unlocking a few times but no luck.

How can I: A) open it to fill up B) diagnose and repair?

Cheers