  The comparison of photoproduction cross sections for $c\bar{c}$ and b-b(bar)
in PbPb and pPb collisions can give sensitivity to nuclear shadowing effects.
The photoproduction of vector mesons is even more sensitive to the underlying
gluon distributions. In this study we present the cross sections and rapidity
dependence of the photoproduction of heavy quarks and exclusive production of
vector mesons in ultraperipheral pPb and PbPb collisions at the Large Hadron
Collider at sqrt(s_NN)=5 TeV and sqrt(s_NN)=2.76$ TeV, respectively. The
potentials of using these processes for constraining nuclear gluon shadowing
are explored. It is found that photoproduction of $J/\psi$ and $\Upsilon$ in
PbPb collisions in particular exhibit very good sensitivity to gluon shadowing.
