Use of the infinitive, always use 'to'?
Solution 1:
I find both to be possible, but "opportunity to be here" sounds more natural to me.
Note that there isn't a general rule: it depends entirely on the particular word that governs it (here, opportunity), and there is no logic to which word prefers which construction: they just have to be learnt.