A massive quake of magnitude 8.2 struck in the Pacific Ocean close to Fiji and Tonga on Sunday but it was so deep that it did not cause any damage, authorities in Fiji said.