1 Introduction

Einstein’s theory of gravity (ETG) is a relativistic model that describes the gravitational field. In this configuration, it is presumed that the graviton has no mass. The ability to construct a self-consistent notion of gravity in the case where the graviton has mass is an expected question. Recent Ligo experiment observations also imply that the graviton has a nonzero mass [1]. Additionally, it is claimed that the Hubble scale’s massive graviton may be the root cause for the Universe’s accelerated expansion [2, 3]. A family of nonlinear massive gravity theories were developed in Refs. [4,5,6]. Note that these theories do not include ghost fields [7, 8]. In the four dimensional massive gravity, Vegh [9] discovered a nontrivial black hole solution with a negative cosmological constant. This solution has also a Ricci flat horizon [10]. The graviton’s mass was later discovered to have the same act as lattice in case of holographic conductor model: typically, the conductivity displays a Drude peak that resembles a delta function when the graviton’s mass vanishes. In Refs. [11,12,13,14,15], some holographic repercussions of the impact of the nonzero graviton mass were also explored. The metal-insulator transition is another intriguing scenario that gives credibility to the massive gravities [16]. The higher dimensional Vegh’s black holes of massive gravity were explored in Ref. [17].

Massive gravities should be recognized as requiring not just the dynamical metric \(g_{\mu \nu }\) but also the fiducial reference metric \(f_{\mu \nu }\) and non-derivative potentials \(\Xi _i\)’s. It is quite intriguing that a new class of massive gravities can be developed when an appropriate choice for the metric \(f_{\mu \nu }\) is made [18]. For numerous fiducial metrics, including the Minkowskian and singular reference metrics [8, 19,20,21,22], the dRGT version of massive gravity [5] emerges out to be a ghost-free. Studies of various cosmological scenarios in massive gravity revealed that they are reliant on the selection of the Minkowskian reference metrics [21,22,23,24,25]. In Refs. [26,27,28,29,30,31,32,33,34,35,36,37,38,39], different black holes of the massive gravity and their physical properties have recently been examined. Among these, the anti-de Sitter black holes play a significant role in various usages of gauge/gravity duality [10] and black hole chemistry [40].

Recently Liu et al. introduced the quasitopological electromagnetism within the framework of Abelian gauge theories [41]. They altered the conventional Maxwellian model by incorporating new terms into the Lagrangian. Remember that these terms depend on the metric tensor and electromagnetic 2 -form \(F_{[2]}=dA_{[1]}\). These involve polynomials such as

$$\begin{aligned} V_{[2s]}=F_{[2]}\wedge F_{[2]}\wedge \cdots \wedge F_{[2]}. \end{aligned}$$
(1)

The above polynomials seem like the Pontryagin densities, and their integrals in even dimensions are truly topological. The dynamics of the system can, however, be affected when these 2s-forms are adopted for arbitrary dimensions. One can attained this by using the squared norm

$$\begin{aligned} U^{(s)}_{[d]}\sim \left| V_{[2s]}\right| ^2\sim V_{[2s]}\wedge *V_{[2s]}. \end{aligned}$$
(2)

Remember that the situation with \(s=1\) in Eq. (2) resembles the standard kinetic term of Maxwell’s model. The contributions of these invariants to the field equations are often non-vanishing. The following two factors have led to the designation of this model as quasitopological electromagnetism. First, as a result of the forms \(V_{[2s]}\), i.e. the component pieces of this model, have topological origin. Second, the spectra of purely electric and magnetic solutions are in agreement with the spectra of the solutions that correspond in Maxwell’s theory. Investigating dyons, though, reveals amazing things. Recently, the further development in this regard has been examined as well so that the Abelian gauge field \(A_{[1]}\) and the higher-rank \((s-1)\)-form field \(B_{[s-1]}\) are both taken into account [42]. By using the relation \(H_{[s]}=dB_{[s-1]}\), one can defined the field strength that relates to the value of \(B_{[s-1]}\). This generalized model may have several physical premises according to the specifics of the situation. The fundamental Kalb–Ramond 2-form \(B_{[2]}\), the Ramond–Ramond s-forms, or the 3-forms of the eleventh dimensional super-gravity are some examples of higher rank fields formulating in string theory. Additionally, it has been established that more prevalent black holes can develop when the Maxwell field is coupled to s-forms [42]. Recently, black hole configurations with scalar hair in the background of Lovelock gravity and generalized quasitopological electromagnetism have also been addressed [43]. In this study, we are eager to investigate dyonic black holes of massive gravity with generalized quasitopological electromagnetism.

A striking illustration of this concept can be found in the groundbreaking images of the space-time surrounding supermassive black holes, captured by the Event Horizon Telescope team [44]. This remarkable journey into unraveling the enigmas of deep spacetime commenced in 2019 with the historic unveiling of the first image of the compact object M87*. Continuing on this trajectory, the EHT team has recently astounded us once again by documenting the inaugural visuals of another supermassive compact object situated at the heart of our Milky Way galaxy-Sagittarius A* (Sgr A*) [45]. Subsequently, numerous works have emerged in this domain, reflecting the ongoing exploration and research in this captivating field [46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145].

The outline of the paper is as follows. In Sect. 2, we coupled massive gravity to generalized quasitopological electromagnetism and used the variational principle to construct the updated equations of motion. In this configuration, a new topological dyonic black hole solution of massive gravity is generated. Section 3 addresses the thermodynamic properties of the resulting solutions. In Sect. 4, we look into how thermal fluctuations alter the physical quantities of the black hole. In Sect. 5, we study the shadow cast of the black hole. Finally, Sect. 6 provides some concluding thoughts to wrap up the paper.

2 Topological dyonic black holes

The action of the massive gravity with cosmological constant \(\Lambda \) and generalized quasitopological electromagnetism can be expressed as

$$\begin{aligned} {\mathcal {I}}=\int d^dx\sqrt{-g}\bigg [R+m^2\sum _{i=1}^{4}a_i\Xi _i({{\textbf {g}}},{{\textbf {f}}})-2\Lambda +{\mathfrak {L}}_{QT}\bigg ], \nonumber \\ \end{aligned}$$
(3)

in which \({\mathfrak {L}}_{QT}\) stands for the Lagrangian density of extended quasitopological electromagnetic field and R signifies the Ricci scalar. In addition, m denotes the mass of graviton, \(a_i\)’s are the coupling constants, and \(\Xi \)’s are signifying the non-derivative potentials. Notably, these potentials are symmetric polynomials that specify the eigenvalues of the \(d\times d\) matrix \(\zeta ^{\mu }_{\nu }=\sqrt{g^{\mu \alpha }f_{\alpha \nu }}\). These potentials can be addressed as

$$\begin{aligned} \begin{aligned} \Xi _1&=[\zeta ], \Xi _2=[\zeta ]^2-[\zeta ^2], \Xi _3 \\&\quad =[\zeta ]^3-3[\zeta ][\zeta ^2]+2[\zeta ^3],\\ \Xi _4&=[\zeta ]^4-6[\zeta ^2][\zeta ]^2+8[\zeta ^3][\zeta ]+3[\zeta ^2]^2-6[\zeta ^4]. \end{aligned} \end{aligned}$$
(4)

The Lagrangian density of the generalized quasitopological electromagnetism [42] is stated as

$$\begin{aligned} {\mathfrak {L}}_{QT}=-\frac{1}{4} F_{\rho \sigma }F^{\rho \sigma }-\frac{1}{2s!}H_{\nu _1\nu _2\cdots \nu _s}H^{\nu _1\nu _2\cdots \nu _s} -\chi {\mathfrak {L}}_{int}, \end{aligned}$$
(5)

in which \(\chi \) is the coupling constant and \({\mathfrak {L}}_{int}\) designates the interaction term, which is expressed as

$$\begin{aligned} {\mathfrak {L}}_{int}=\delta ^{\rho _1\cdots \rho _d}_{\sigma _1\cdots \sigma _d}F_{\rho _1\rho _2} H_{\rho _3\cdots \rho _d}F^{\sigma _1\sigma _2}H^{\sigma _3\cdots \sigma _d}. \end{aligned}$$
(6)

Remember that the following forms are taken into consideration for the formation of above Eq. (6), i.e.

$$\begin{aligned} \begin{aligned}&F_{\rho \sigma }\sim h'(r)\delta ^{x^0x^1}_{\rho \sigma },\\&H_{\nu _1\nu _2\cdots \nu _s}\sim \delta ^{x^2\cdots x^d}_{\nu _1\nu _2\cdots \nu _s}, \end{aligned} \end{aligned}$$
(7)

with \(s=d-2\), while \(F_{\mu \nu }\) and \( H_{\nu _1\nu _2\cdots \nu _s}\) are purely electric and purely magnetic, respectively. It is possible to obtain the field equations characterizing quasitopological electromagnetism through the use of Eqs. (5)–(7) in Eq. (3) as follows:

$$\begin{aligned} \nabla _{\gamma }F^{\gamma \rho }-4\chi \delta ^{\rho \gamma \nu _1\cdots \nu _s}_{\sigma _1\sigma _2\cdots \sigma _d} H_{\nu _1\cdots \nu _s}\nabla _{\gamma }\big (F^{\sigma _1\sigma _2}H^{\sigma _3\cdots \sigma _d}\big )=0, \end{aligned}$$
(8)

and

$$\begin{aligned}{} & {} \nabla _{\rho }H^{\rho \nu _1\cdots \nu _{s-1}} \nonumber \\{} & {} \quad +2\chi s!\delta ^{\rho \gamma \beta \nu _1\cdots \nu _{s-1}}_{\sigma _1\cdots \sigma _d}F_{\rho \gamma }\nabla _{\beta } \big (F^{\sigma _1\sigma _2}H^{\sigma _3\cdots \sigma _d}\big )=0. \end{aligned}$$
(9)

By varying Eq. (3) with regards to \(g_{\mu \nu }\), the equations of motion of massive gravity sourced by quasitopological electromagnetic field can be derived as

$$\begin{aligned} R_{\mu \nu }-\frac{1}{2}g_{\mu \nu }R+\Lambda g_{\mu \nu }+m^2X_{\mu \nu }={\mathfrak {T}}^{(QT)}_{\mu \nu }, \end{aligned}$$
(10)

with

$$\begin{aligned} X_{\mu \nu }= & {} -\frac{a_1}{2}\bigg (\Xi _1g_{\mu \nu }-\zeta _{\mu \nu }\bigg ) \nonumber \\{} & {} -\frac{a_2}{2} \bigg (\Xi _2g_{\mu \nu }-2\Xi _1\zeta _{\mu \nu }+2\zeta ^2_{\mu \nu }\bigg )-\frac{a_3}{2} \nonumber \\{} & {} \times \bigg (\Xi _3g_{\mu \nu }-3\Xi _2\zeta _{\mu \nu }+6\Xi _1\zeta ^2_{\mu \nu }-6\zeta ^3_{\mu \nu }\bigg ) \nonumber \\{} & {} -\frac{a_4}{2}\bigg (\Xi _4g_{\mu \nu }-4\Xi _3\zeta _{\mu \nu } \nonumber \\{} & {} +2\Xi _2\zeta ^2_{\mu \nu }-24\Xi _1\zeta ^3_{\mu \nu }+24\zeta ^4_{\mu \nu }\bigg ). \end{aligned}$$
(11)

Furthermore, the energy-momentum tensor of the quasitopological electromagnetic field is labeled by \({\mathfrak {T}}^{(QT)}_{\mu \nu }\) and is specified as

$$\begin{aligned} \begin{aligned}&{\mathfrak {T}}^{(QT)}_{\alpha \beta }=F_{\alpha \rho }F^{\rho }_{\beta } \\&\quad -\frac{1}{4}g_{\alpha \beta } F_{\rho \sigma }F^{\rho \sigma }+\frac{1}{2(s-1)!}H_{\alpha \nu _1\cdots \nu _{s-1}}H^{\nu _1\cdots \nu _{s-1}}_{\beta }\\&\quad -\frac{1}{2(s!)^2}\delta ^{\nu _1\cdots \nu _s\rho }_{\sigma _1\cdots \sigma _s(\alpha }g_{\beta )\rho } H_{\nu _1\cdots \nu _s}H^{\sigma _1\cdots \sigma _s}+\chi g_{\alpha \beta }{\mathfrak {L}}_{int}. \end{aligned} \end{aligned}$$
(12)

Here, we are attempting to figure out the dyonic black hole solution of the field equations (10) by using the generalized model of quasitopological electromagnetism. To execute this, we are incorporating the following metric ansatz

$$\begin{aligned} ds^2=-f(r)dt^2+\frac{dr^2}{f(r)}+r^2d\Upsilon ^{2}_{d_2}. \end{aligned}$$
(13)

Remember that we are employing \(d_j=d-j\) for simplicity. Meanwhile, \(d\Upsilon ^{2}_{d_2}\) specifies the metric of the \(d_2\)-dimensional submanifold with constant curvature \(d_2d_3\Theta \), and can be presented as

$$\begin{aligned}{} & {} d\Upsilon ^2_{d_2} \nonumber \\{} & {} =\left\{ \begin{array}{ll} d\theta _1^2+\sum _{j=2}^{d-2}\prod _{l=1}^{j-1}\sin ^2\theta _l d\theta _j^2, &{}\quad \Theta =1, \\ d\theta _1^2+\sinh ^2\theta _1d\theta _2^2\\ +\sinh ^2\theta _1\sum _{j=3}^{d-2} \prod _{l=2}^{j-1}\sin ^2\theta _ld\theta ^2_j, &{}\quad \Theta =-1,\\ \sum _{j=1}^{d-2}d\phi _j^2, &{}\quad \Theta =0, \end{array}\right. \end{aligned}$$
(14)

Remember that this sub-manifold is embellished with a magnetic field that is proportionated to its intrinsic volume form such that

$$\begin{aligned} H_{\nu _1\nu _2\cdots \nu _m}=\nu \sqrt{\Sigma }\delta ^{x^1\cdots x^m}_{\nu _1\cdots \nu _m}. \end{aligned}$$
(15)

Similarly, for the purely electric case, we can write

$$\begin{aligned} F_{\alpha \beta }=h'(r)\delta ^{tr}_{\alpha \beta }, \end{aligned}$$
(16)

where prime refers to the differentiation with respect to r. Thereby, through the usage of Eqs. (15) and (16) one finds

$$\begin{aligned}{} & {} r^{2d_2}\big (d_2h'(r)+rh''(r)\big ) \nonumber \\{} & {} \quad -8\chi (d_2!)^2q^2\big (d_2h'(r)-rh''(r)\big )=0. \end{aligned}$$
(17)

One may integrate the above equation to get

$$\begin{aligned} h'(r)=\frac{e r^{d_2}}{r^{2d_2}+8\chi (d_2!)^2\nu ^2}. \end{aligned}$$
(18)

Here the integration constants \(\nu \) and e are respectively related to magnetic and electric charges. Moreover, Eq. (18) specifies the screening of the electric field driven by the interaction with the magnetic part. Since the spacetime is presupposed to have a d-dimensional metric (13), it is beneficial to set up the extra dimensional reference metric as \(f_{\mu \nu }=Diag(0,0,\beta ^2h_{ij})\), with \(\beta >0\) and \(h_{ij}\) conveying the sector that refers to \(d_2\)-dimensional submanifold in Eq. (14). It is simple to estimate \(\Xi _i\)’s in the form \(\Xi _k=\frac{\beta ^k}{r^k}\prod _{j=2}^{k+1}d_j\) by employing this extended reference metric [17, 146]. As a result, by substituting Eq. (13), fiducial metric \(f_{\mu \nu }\), and energy-momentum tensor (12) with Eqs. (15) and (18) in the gravitational field equations (8), one may extract the following solution

$$\begin{aligned} f(r)= & {} \Theta -\frac{\mu }{r^{d_3}}-\frac{2\Lambda r^2}{d_1d_2} \nonumber \\{} & {} +m^2\bigg (\frac{a_1\beta r}{d_2}+a_2\beta ^2+\frac{a_3\beta ^3d_3}{r}+\frac{a_4\beta ^4d_3d_4}{r^2}\bigg ) \nonumber \\{} & {} +\frac{e^2}{2d_2d_3r^{2d_3}}\nonumber \\\times & {} F_1\bigg (\bigg [1,\frac{d_3}{2d_2}\bigg ],\bigg [\frac{3d-7}{2d_2}\bigg ],\frac{-8\chi \nu ^2(\Gamma (d_1))^2}{r^{2d_2}}\bigg ) \nonumber \\{} & {} +\frac{\nu ^2}{2d_2d_3r^{2d_3}}, \end{aligned}$$
(19)

where the integration constant \(\mu \) refers to the geometric mass of black hole and \(F_1\) denotes the hypergeometric function. In four dimensional spacetimes, the resultant solution (19) yields a simpler form

$$\begin{aligned} \begin{aligned} f(r)&=\Theta -\frac{\mu }{r}-\frac{\Lambda r^2}{3}\\&+m^2\bigg (\frac{a_1\beta r}{2}+a_2\beta ^2+\frac{a_3\beta ^3}{r}\bigg )+\frac{\nu ^2}{4r^2}\\&\quad +\frac{e^2}{4r^2}F_1\bigg (\bigg [1,\frac{1}{4}\bigg ],\bigg [\frac{5}{4}\bigg ],\frac{-32\chi \nu ^2}{r^{4}}\bigg ), \end{aligned} \end{aligned}$$
(20)

which converts into four dimensional Reissner–Nordstrom type solution of massive gravity for large values of r, i.e.,

$$\begin{aligned} f(r)= & {} \Theta -\frac{\mu }{r}-\frac{\Lambda r^2}{3} \nonumber \\{} & {} \quad +m^2\bigg (\frac{a_1\beta r}{2}+a_2\beta ^2+\frac{a_3\beta ^3}{r}\bigg )+\frac{\nu ^2+e^2}{4r^2}. \end{aligned}$$
(21)

The dependence of the resultant solution (19) on the geometric mass \(\mu \) is shown in Fig. 1. The equation \(f(r)=0\) can be utilized to figure out the inner and outer horizons. The positions of horizons correspond to those values of r at which the curve connected to dyonic solution (19) crosses the horizontal axis. Moreover, the event horizon \(r_{ext}\) and mass \(\mu _{ext}\) of an extreme black hole can be worked out if one solves the equations \(f(r)=0\) and \(f'(r)=0\), simultaneously [147]. Hence, it is simple to obtain the geometric mass of an extreme black hole as follows:

$$\begin{aligned}{} & {} \mu _{ext}=\frac{r_{ext}^{d_3}}{d_1} \nonumber \\{} & {} \quad \bigg [2\Theta +m^2\bigg (\frac{a_1\beta r_{ext}}{d_2}+2a_2\beta ^2+\frac{3a_3\beta ^3}{r_{ext}}+\frac{4a_4\beta ^4}{r_{ext}^2}\bigg ) \nonumber \\{} & {} \quad +\frac{\nu ^2}{d_3r_{ext}^{2d_3}}+\frac{e^2}{d_3r_{ext}^{2d_3}} \nonumber \\{} & {} \quad \times F_1\bigg (\bigg [1,\frac{d_3}{2d_2}\bigg ],\bigg [\frac{3d-7}{2d_2}\bigg ],\frac{-8\chi \nu ^2(\Gamma (d_1))^2}{r_{ext}^{2d_2}}\bigg ) \nonumber \\{} & {} \quad +\frac{e^2r_{ext}^2}{2d_2\big (r_{ext}^{2d_2}+8\chi \nu ^2(\Gamma (d_1))^2\big )}\bigg ]. \end{aligned}$$
(22)

Note that the event horizon of extreme black hole satisfies the following equation

$$\begin{aligned}{} & {} d_3\Theta -\frac{2\Lambda r_{ext}^2}{d_2}+m^2 \nonumber \\{} & {} \quad \bigg (a_1\beta r_{ext}+d_3a_2\beta ^2+\frac{d_3d_4a_3\beta ^3}{r_{ext}} +\frac{d_3d_4d_5a_4\beta ^4}{r_{ext}^2}\bigg ) \nonumber \\{} & {} \quad -\frac{\nu ^2}{2d_2r_{ext}^{2d_3}}-\frac{e^2r_{ext}^2}{2d_2\big (r_{ext}^{2d_2}+8\chi \nu ^2(\Gamma (d_1))^2\big )}=0. \end{aligned}$$
(23)

Figure 1 shows that when geometric mass attains its extreme value \(\mu _{ext}\), the resultant dyonic black solution has only one event horizon. The interesting scenario arises when \(\mu \ne \mu _{ext}\). In this case, the dyonic black holes of massive gravity have both inner Cauchy and outer event horizons even when \(\mu =0\). This interesting behaviour of the metric function is due to the assumption of massive graviton in the action function. Figure 2 exhibits the behaviour of the resultant solution in various dimensions. Notably, the horizon structure of the resultant dyonic solution is also influenced by the dimensionality parameter. It is demonstrated that the higher dimensional black holes have larger Cauchy and event horizons than the lower dimensional objects. In addition, the impact of massive graviton on the resultant solution is demonstrated in Fig. 3. We have noted earlier that the solution (19) describes dyonic black holes with inner and outer horizons for any non-negative value of the black hole’s geometric mass such that \(\mu \ne \mu _{ext}\). However, there also exists a critical value \(m_c\) of graviton’s mass such that the resultant solution describes a black hole with two horizons when the mass of graviton is lesser than this critical value, an extreme black hole having one horizon when the mass of graviton takes the value \(m_c\), and naked singularity when graviton’s mass exceeds the value \(m_c\). Similarly, electric and magnetic charges have also unavoidable effects on the behaviour of our resultant solution (19). Figures 4 and 5 demonstrate that the radius of the Cauchy horizon grows when the magnitude of these charges increases, however, the location of the outer horizon remains unchanged.

Fig. 1
figure 1

Plot of the resultant solution f(r) (Eq. (19)) for various values of geometric mass. The other values have been taken as \(d=4\), \(\Theta =-1\), \(\Lambda =-0.5\), \(\nu =0.5\), \(m=0.05\), \(e=1\), \(a_1=1\), \(a_2=2\), \(a_3=1\), \(a_4=2\), \(\beta =1\), and \(\chi =1\)

Fig. 2
figure 2

Plot of the resultant solution f(r) (Eq. (19)) in various dimensions. The other values have been taken as \(\mu =1\), \(\Theta =-1\), \(\Lambda =-0.5\), \(\nu =0.5\), \(m=0.05\), \(e=1\), \(a_1=1\), \(a_2=2\), \(a_3=1\), \(a_4=2\), \(\beta =1\), and \(\chi =1\)

Fig. 3
figure 3

Dependence of the resultant solution f(r) (Eq. (19)) on the graviton’s mass. The other values have been taken as \(d=6\), \(\Theta =-1\), \(\Lambda =-0.5\), \(\nu =0.5\), \(\mu =1\), \(e=1\), \(a_1=1\), \(a_2=2\), \(a_3=1\), \(a_4=2\), \(\beta =1\), and \(\chi =1\)

Fig. 4
figure 4

Impact of the magnetic charge on the resultant solution f(r) (Eq. (19)). The other values have been taken as \(d=6\), \(\Theta =-1\), \(\Lambda =-0.3\), \(\mu =1\), \(m=0.05\), \(e=1\), \(a_1=1\), \(a_2=2\), \(a_3=1\), \(a_4=2\), \(\beta =1\), and \(\chi =1\)

Fig. 5
figure 5

Behaviour of the resultant solution f(r) (Eq. (19)) for various values of the electric charge. The other values have been taken as \(d=6\), \(\Theta =-1\), \(\Lambda =-0.3\), \(\nu =2.5\), \(m=0.05\), \(\mu =1\), \(a_1=1\), \(a_2=2\), \(a_3=1\), \(a_4=2\), \(\beta =1\), and \(\chi =1\)

The Ricci and Kretschmann invariants that correlate with Eq. (13) are stated as

$$\begin{aligned} R(r)=(d^2-5d+6)\frac{(\Theta -f(r))}{r^2}-\frac{d^2f}{dr^2}-\frac{2d_2}{r}\frac{df}{dr}, \nonumber \\ \end{aligned}$$
(24)

and

$$\begin{aligned} K(r)=2d_2d_3\frac{(k-f(r))^2}{r^4}-\bigg (\frac{d^2f}{dr^2}\bigg )^2 +\frac{2d_2}{r^2}\bigg (\frac{df}{dr}\bigg )^2.\nonumber \\ \end{aligned}$$
(25)

Hence, using the resultant solution (19) in Eqs. (24)–(25), one can show that

$$\begin{aligned} \lim _{r\rightarrow \infty } R(r)=\frac{2d}{d_2}\Lambda , \lim _{r\rightarrow \infty } K(r) =\frac{8d}{d_1d_2^2}\Lambda ^2. \end{aligned}$$
(26)

Similarly, it can also be shown that

$$\begin{aligned} \begin{aligned}&\lim _{r\rightarrow 0} R(r)\rightarrow \infty ,\\ {}&\lim _{r\rightarrow 0} K(r)\rightarrow \infty . \end{aligned} \end{aligned}$$
(27)

The irregular behaviour of these curvature invariants at \(r=0\) indicates the presence of a true curvature singularity at this position. Hence, Eqs. (26) shows that the metric function (19) describes the new family of non-asymptotically flat black holes of massive gravity sourced by generalized quasitopological electromagnetism. It should also be remembered that the metric function (19) reduces to the higher dimensional dyonic solution of ETG [42] when one puts \(m=0\).

3 Thermodynamics of dyonic black holes

Now we seek to figure out the thermodynamic and conserved quantities of the resultant dyonic black holes (19). From \(f(r_+)=0\), it is feasible to exhibit the finite mass as

$$\begin{aligned} \begin{aligned}&M=\frac{d_2\mu \Sigma _{d_2}}{2}=\frac{d_2\Sigma _{d_2}}{2}\bigg [\Theta r_+^{d_3}-\frac{2\Lambda }{d_1d_2}r_+^{d_1}+\frac{\nu ^2}{2d_2d_3r_+^{d_3}}\\&\quad +\frac{e^2}{2d_2d_3r_+^{d_3}} \\&\quad F_1\bigg (\bigg [1,\frac{d_3}{2d_2}\bigg ],\bigg [\frac{3d_2-1}{2d_2}\bigg ],\frac{-8\chi \nu ^2(\Gamma (d_1))^2}{r_+^{2d_2}}\bigg )\\ {}&\quad +m^2\bigg (\frac{a_1\beta }{d_2}r_+^{d_2}+a_2\beta ^2r_+^{d_3} {+}d_3a_3\beta ^3r_+^{d_4}+d_3d_4a_4\beta ^4r_+^{d_5}\bigg )\bigg ].\end{aligned}\nonumber \\ \end{aligned}$$
(28)

Note that \(\Sigma _{d_2}\) labels the volume of \(d_2\)-dimensional hyper-surface. Calculation of Hawking temperature is crucial in order to gain insight into the thermodynamic behaviour of the dyonic black holes provided by Eq. (19). Hence, one might utilize the terminology

$$\begin{aligned} T=\frac{\kappa _s}{2\pi }, \end{aligned}$$
(29)

where the quantity \(\kappa _s\) refers to the surface gravity and is specified as

$$\begin{aligned} \begin{aligned} \kappa _s&=\sqrt{-\frac{1}{2}(\nabla _{\alpha }{\mathcal {X}}_{\beta })(\nabla ^{\alpha }{\mathcal {X}}^{\beta })}. \end{aligned} \end{aligned}$$
(30)

Here \({\mathcal {X}}_{\alpha }\) symbolizes the time-like Killing vector field. Thereby, one may get to

$$\begin{aligned} \begin{aligned}&T(r_+)=\frac{1}{4\pi }\bigg [\frac{\Theta d_3}{r_+}-\frac{2\Lambda r_+}{d_2}-\frac{\nu ^2}{2d_2r_+^{2d-5}}\\&\quad -\frac{e^2r_+}{2d_2\big (r_+^{2d_2}+8\chi \nu ^2(\Gamma (d_1))^2\big )}\\&\quad +m^2\bigg (a_1\beta +\frac{a_2\beta ^2d_3}{r_+}+\frac{d_4d_3a_3\beta ^3}{r_+^2} +\frac{d_3d_4d_5a_4\beta ^4}{r_+^3}\bigg )\bigg ]. \end{aligned} \end{aligned}$$
(31)
Fig. 6
figure 6

Behaviour of temperature (Eq. (31)) in various spacetime dimensions. The other parameters are fixed as \(\Lambda =-0.3\), \(\nu =2.5\), \(e=10\), \(m=0.1\), \(\Theta =-1\), \(a_1=1\), \(a_2=2\), \(a_3=1\), \(a_4=2\), \(\beta =1\), and \(\chi =1\)

Fig. 7
figure 7

Dependence of \(T(r_+)\) (Eq. (31)) on graviton’s mass. The other parameters are fixed as \(\Lambda =-0.3\), \(\nu =2.5\), \(e=10\), \(d=7\), \(\Theta =-1\), \(a_1=1\), \(a_2=2\), \(a_3=1\), \(a_4=2\), \(\beta =1\), and \(\chi =1\)

Fig. 8
figure 8

Plot of \(T(r_+)\) (Eq. (31)) for various values of magnetic charge. The fixed values are chosen as \(\Lambda =-0.3\), \(m=0.05\), \(e=10\), \(d=5\), \(\Theta =-1\), \(a_1=1\), \(a_2=2\), \(a_3=1\), \(a_4=2\), \(\beta =1\), and \(\chi =1\)

Fig. 9
figure 9

Impact of electric charge on \(T(r_+)\) (Eq. (31)) for \(\Lambda =-0.3\), \(m=0.05\), \(q=0.5\), \(d=5\), \(\Theta =-1\), \(a_1=1\), \(a_2=2\), \(a_3=1\), \(a_4=2\), \(\beta =1\), and \(\chi =1\)

Figure 6 demonstrates that the event horizon \(r_{ext}\) of extreme black hole (i.e. for which \(T(r_{ext})=0\)) is growing larger when the dimensions of spacetime rise. Similarly, Fig. 7 illustrates how graviton’s mass influences \(T(r_+)\). Those values of \(r_+\) at which \(T(r_+)\) flips from negative to a positive sign correspond to first-order phase transition points. In addition, the positivity of \(T(r_+)\) suggests the physicality of resultant dyonic black hole (19). It is also observed that the four-dimensional dyonic black holes are more physical than the higher dimensional objects. Likewise, as the mass of graviton rises, the region concerning to physicality of objects widens. Moreover, one can witness the implications of the charges \(\nu \) and e on \(T(r_+)\) in Figs. 8 and 9, respectively. It is portrayed that the extreme black hole’s horizon radius ascends and first-order phase transition points shift to right when the magnitudes of these charges go up. It is vital to remember that when \(m=0\), the temperature of dyonic black hole in ETG is regained. Correspondingly, when \(\nu \) and e are vanishing, the Hawking temperature of the neutral black holes of massive gravity in diverse dimensions would be encountered.

By utilizing the area law [148,149,150], the entropy of the dyonic black hole (19) can be figured out as

$$\begin{aligned} \begin{aligned} S=\frac{\Sigma _{d_2}r_+^{d_2}}{4}.\end{aligned} \end{aligned}$$
(32)

The electric and magnetic charges can be estimated by employing the fluxes of \(F_{[2]}\) and \(H_{[d_2]}\) at infinity, respectively. Hence, one may introduce

$$\begin{aligned} \begin{aligned}&e\sim \int *F_{[2]} ,\\ {}&\nu \sim \int H_{[d_2]},\end{aligned} \end{aligned}$$
(33)

with appropriate constants of proportionality. If e and \(\nu \) are considered as extensive thermodynamic variables then it is easier to showcase the first law as

$$\begin{aligned} dM=TdS+\Phi _e de+\Phi _{\nu }d\nu , \end{aligned}$$
(34)

where the conjugate quantities that correspond to e and \(\nu \) can be respectively presented as

$$\begin{aligned} \Phi _e=\frac{e\Sigma _{d_2}}{2d_2d_3r_+^{d_3}}F_1\bigg (\bigg [1,\frac{d_3}{2d_2}\bigg ], \bigg [\frac{3d-7}{2d_2}\bigg ],\frac{-8\chi \nu ^2(\Gamma (d_1))^2}{r_+^{2d_2}}\bigg ),\nonumber \\ \end{aligned}$$
(35)

and

$$\begin{aligned} \begin{aligned}&\Phi _{\nu }=\frac{\nu ^2\Sigma _{d_2}}{2d_3r_+^{d_3}}+\frac{e^2\Sigma _{d_2}r_+^{d_1}}{2d_2\nu \big (r_+^{2d_2}+8\chi \nu ^2(\Gamma (d_1))^2\big )}\\ {}&\quad -\frac{e^2\Sigma _{d_2}}{2d_2\nu r_+^{d_3}}F_1\bigg (\bigg [1,\frac{d_3}{2d_2}\bigg ],\bigg [\frac{3d-7}{2d_2}\bigg ],\frac{-8\chi \nu ^2(\Gamma (d_1))^2}{r_+^{2d_2}}\bigg ).\end{aligned} \end{aligned}$$
(36)

The heat capacity can be defined as

$$\begin{aligned} \begin{aligned} C_H=T(r_+)\frac{\partial S}{\partial r_+}\bigg (\frac{\partial T}{\partial r_+}\bigg )^{-1}\bigg |_{e,\nu }.\end{aligned} \end{aligned}$$
(37)

Therefore, by plugging Eqs. (31) and (32) into Eq. (37), one gets

$$\begin{aligned} \begin{aligned} C_H&=\frac{d_2\Sigma _{d_2}r_+^{d_2}\big [\Theta d_2d_3r_+^2-2\Lambda r_+^4+{\mathfrak {H}}_1(r_+)\big ]}{\big [{\mathfrak {H}}_2(r_+)-4\Theta d_2d_3r_+^2-8\Lambda r_+^4\big ]},\end{aligned}\end{aligned}$$
(38)

where

$$\begin{aligned} \begin{aligned}&{\mathfrak {H}}_1(r_+)=d_2m^2\bigg (a_1\beta r_+^3+a_2\beta ^2d_3r_+^2+d_3d_4a_3\beta ^3r_+\\&\quad +d_3d_4d_5a_4\beta ^4\bigg )-\frac{\nu ^2}{2r_+^{2d_4}} -\frac{e^2r_+^4}{2\big (r_+^{2d_2}+8\chi \nu ^2(\Gamma (d_1))^2\big )}, \end{aligned}\nonumber \\ \end{aligned}$$
(39)

and

$$\begin{aligned} \begin{aligned}&{\mathfrak {H}}_2(r_+)=\frac{(4d-10)\nu ^2}{r_+^{2d_4}}\\&\quad +\frac{2e^2r_+^4\big ((2d-3)r_+^{2d_2}-8\chi \nu ^2(\Gamma (d_1))^2\big )}{\big (r_+^{2d_2}+8\chi \nu ^2(\Gamma (d_1))^2\big )^2}\\&\quad -4d_2m^2\bigg (a_2\beta ^2d_3r_+^2+2d_3d_4a_3\beta ^3r_++3d_3d_4d_5a_4\beta ^4\bigg ). \end{aligned}\nonumber \\ \end{aligned}$$
(40)
Fig. 10
figure 10

Behaviour of heat capacity (Eq. (38)) in various spacetime dimensions. The other parameters are fixed as \(\Lambda =-0.3\), \(\nu =0.5\), \(e=10\), \(m=0.05\), \(\Theta =-1\), \(a_1=1\), \(a_2=2\), \(a_3=1\), \(a_4=2\), \(\beta =1\), and \(\chi =1\)

Fig. 11
figure 11

Dependence of heat capacity (Eq. (38)) on the graviton’s mass various. The other parameters are fixed as \(\Lambda =-0.3\), \(\nu =0.5\), \(e=10\), \(d=6\), \(\Theta =-1\), \(a_1=1\), \(a_2=2\), \(a_3=1\), \(a_4=2\), \(\beta =1\), and \(\chi =1\)

Fig. 12
figure 12

Plot of \(C_H(r_+)\) (Eq. (38)) for various values of magnetic charge. Additionally, we have selected \(\Lambda =-0.3\), \(d=6\), \(e=10\), \(m=0.8\), \(\Theta =-1\), \(a_1=1\), \(a_2=2\), \(a_3=1\), \(a_4=2\), \(\beta =1\), and \(\chi =1\)

Fig. 13
figure 13

Plot of \(C_H(r_+)\) (Eq. (38)) for various values of electric charge. The other parameters are fixed as \(\Lambda =-0.3\), \(d=6\), \(\nu =2.5\), \(m=0.8\), \(\Theta =-1\), \(a_1=1\), \(a_2=2\), \(a_3=1\), \(a_4=2\), \(\beta =1\), and \(\chi =1\)

Figures 101112, and 13 illustrate the plots of heat capacity for several values of the dimensionality parameter, graviton’s mass, magnetic charge, and electric charge, respectively. The region of positive heat capacity conveys the local stability of the resultant dyonic black hole of massive gravity. The points at which the curves linked to \(C_H(r_+)\) meet with the \(r_+\)-axis reflect the appearance of the first-order phase transitions, whereas the points at which this quantity is not regular reveal the emergence of second-order phase transitions. It is detected that heat capacity has two singular points, let us call them \(r_1\) and \(r_2\) such that \(r_2>r_1\). The smaller black holes whose horizon radii falls in \((0,r_1)\) are stable. The black hole whose event horizon radius belong to the interval \((r_1,r_2)\), however, is locally unstable. Besides, the objects of larger sizes with horizon radii in the range \((r_2,\infty )\) are locally stable. Additionally, it has been recognized that when the magnitudes of electric and magnetic charges increase, \(r_1\) grows while \(r_2\) shrinks. It is also noteworthy to point out that the situation \(m=0\) in Eq. (38) refers to heat capacity of dyonic black holes in ETG, whereas by plugging \(e=\nu =0\) in this equation leads to the heat capacity of neutral black holes in massive gravity.

4 Thermal fluctuations

Here, we are looking into how thermal fluctuations may affect the local thermodynamic stability of resultant dyonic black holes (19). The effects of thermal fluctuations leads to the extended forms of various thermodynamic quantities, however, some quantities remain unaltered. The black hole entropy when encounters first-order correction becomes proportional to \(\ln {C_VT^2}\) with \(\bigg (C_V=\frac{1}{T^2}\frac{\partial ^2S_1}{\partial \zeta ^2}\bigg )_{\zeta =\zeta _0}\) and \(\zeta =1/T\) [151]. Following [152,153,154,155,156], one may express

$$\begin{aligned} S_0=\frac{1}{T^2}\bigg (\frac{\partial ^2S_1}{\partial \zeta ^2}\bigg )_{\zeta =\zeta _0}. \end{aligned}$$
(41)

Remember that \(S_0\) reflects the uncorrected entropy while \(S_1\) signifies the modified entropy as a result of thermal fluctuations. This allows us to express the corrected entropy as

$$\begin{aligned} \begin{aligned} S_1&=S_0-\frac{1}{2}\ln {\bigg (S_0T^2\bigg )}.\end{aligned} \end{aligned}$$
(42)

It is also beneficial to introduce a correction parameter \(\xi \) in the second term of Eq. (42). Thereby, the modified entropy can be stated as

$$\begin{aligned} \begin{aligned} S_1&=S_0-\frac{\xi }{2}\ln {\bigg (S_0T^2\bigg )}.\end{aligned} \end{aligned}$$
(43)

Thus by using Eq. (32) one can get

$$\begin{aligned} \begin{aligned} S_1&=\frac{r_+^{d_2}\Sigma _{d_2}}{4}-\frac{\xi }{2}\log {\bigg (\frac{r_+^{d_2}\Sigma _{d_2}}{4}\bigg )}-\xi \log {T(r_+)},\end{aligned} \end{aligned}$$
(44)

in which \(T(r_+)\) is the Hawking temperature of the dyonic black hole calculated in Eq. (31). It is crucial to notice that one of those entities that logarithmic correction cannot change is temperature. The Helmholtz free energy is defined by the equation

$$\begin{aligned} \begin{aligned} F&=-\int S_1dT=-\int \bigg [\frac{r_+^{d_2}\Sigma _{d_2}}{4}\\&\quad -\frac{\xi }{2}\log {\bigg (\frac{r_+^{d_2} \Sigma _{d_2}}{4}\bigg )}-\xi \log {T(r_+)}\bigg ]{\mathfrak {H}}_3(r_+)dr_+,\end{aligned} \end{aligned}$$
(45)

where

$$\begin{aligned}{} & {} {\mathfrak {H}}_3(r_+)=-\frac{\Theta d_3}{r_+^2}-\frac{2\Lambda }{d_2} \nonumber \\{} & {} \quad -\frac{m^2}{r_+^4}\big (a_2\beta ^2d_3r_+^2+2d_3d_4a_3 \beta ^3r_++3d_3d_4d_5a_4\beta ^4\big ) \nonumber \\{} & {} \quad +\frac{(2d-5)\nu ^2}{2d_2r_+^{2d_2}}+\frac{e^2\big ((2d-3)r_+^{2d_2}-8\chi \nu ^2(\Gamma (d_1))^2\big )}{\big (r_+^{2d_2}+8\chi \nu ^2(\Gamma (d_1))^2\big )^2}.\nonumber \\ \end{aligned}$$
(46)

Likewise, the corrected mass is obtained as

$$\begin{aligned}{} & {} M_1=F+TS_1=F+\frac{1}{4\pi }\bigg [\frac{\Theta d_3}{r_+}-\frac{2\Lambda r_+}{d_2} \nonumber \\{} & {} \quad -\frac{e^2r_+}{2d_2\big (r_+^{2d_2} +8\chi \nu ^2(\Gamma (d_1))^2\big )} -\frac{\nu ^2}{2d_2r_+^{2d-5}} \nonumber \\{} & {} \quad +m^2\bigg (a_1\beta +\frac{a_2\beta ^2d_3}{r_+} +\frac{d_4d_3a_3\beta ^3}{r_+^2} +\frac{d_3d_4d_5a_4\beta ^4}{r_+^3}\bigg )\bigg ] \nonumber \\{} & {} \quad \times \bigg [\frac{r_+^{d_2}\Sigma _{d_2}}{4}-\frac{\xi }{2}\log {\bigg (\frac{r_+^{d_2}\Sigma _{d_2}}{4}\bigg )}-\xi T(r_+)\bigg ].\nonumber \\ \end{aligned}$$
(47)

Thereby, the corrected heat capacity can be obtained as follows

$$\begin{aligned}{} & {} C_1(r_+)=\frac{dM_1}{dT}=T\frac{dS_1}{dT} \nonumber \\{} & {} \quad =\frac{\big (d_2\Sigma _{d_2}r_+^{d_2}-2\xi \big )}{d_2\Sigma _{d_2}r_+^{d_2}}C_H(r_+)-\xi , \end{aligned}$$
(48)

where \(C_H\) is defined by Eq. (38).

Fig. 14
figure 14

Plot of \(C_H(r_+)\) (Eq. (38)) for various values of \(\xi \). The rest of the parameters are chosen as follows: \(\Lambda =-0.3\), \(\Sigma _{d_2}=1\), \(e=10\), \(d=6\), \(\nu =2.5\), \(m=0.8\), \(\Theta =-1\), \(a_1=1\), \(a_2=2\), \(a_3=1\), \(a_4=2\), \(\beta =1\), and \(\chi =1\)

Note that the substitution \(\xi =0\) gives us the heat capacity \(C_H\) from Eq. (48). The impact of thermal fluctuation parameter on corrected heat capacity is pictured in Fig. 14. The stability of dyonic black holes provided by Eq. (19) is reported to be seriously impacted by the logarithmic correction in entropy, while the phase transitions of the black holes are unaffected by thermal fluctuations.

5 Shadow cast of dyonic black holes of massive gravity sourced by quasitopological electromagnetic field

Here, we explore the shadow cast by dyonic black holes that arise from massive gravity in four dimensions. These black holes are influenced by a quasitopological electromagnetic field.

The Lagrangian denoted as \({\mathcal {L}}(x,{\dot{x}})=\frac{g_{\mu \nu }}{2}{\dot{x}}^{\mu }{\dot{x}}^{\nu }\), which governs the paths taken by geodesics within a spacetime metric characterized by spherically symmetric and static attributes [159]

$$\begin{aligned} \begin{aligned} {\mathcal {L}}(x,{\dot{x}})=\frac{1}{2}\left( f(r){\dot{t}}^{2}-f(r)^{-1} {\dot{r}}^{2}-r^{2}\left( {\dot{\theta }}^{2}+\sin ^{2}\theta {\dot{\phi }}^{2}\right) \right) . \end{aligned}\nonumber \\ \end{aligned}$$
(49)

As is customary, employing the Euler–Lagrange equation \(\frac{d}{d\lambda }\left( \frac{\partial {\mathcal {L}}}{\partial {\dot{x}}^{\mu }}\right) -\frac{\partial {\mathcal {L}}}{\partial x^{\mu }}=0\) In the plane along the equator (\(\theta =\pi /2\)), two quantities remain conserved: the energy denoted as E and the angular momentum represented by L

$$\begin{aligned} E=f(r){\dot{t}},\quad L=r^{2}{\dot{\phi }}. \end{aligned}$$
(50)

Upon considering the equation governing null-geodesics for light, we arrive at:

$$\begin{aligned} f(r){\dot{t}}^{2}-f(r)^{-1}{\dot{r}}^{2}+r^{2}{\dot{\phi }}^{2}=0. \end{aligned}$$
(51)

Substituting the conserved quantities E and L, as indicated in Eq. (50), into the aforementioned Eq. (51), yields the ensuing orbit equation for photons:

$$\begin{aligned} \left( \frac{dr}{d\phi }\right) ^{2}=r^{2}f(r)\left( \frac{r^{2}}{f(r)}\frac{E^{2}}{L^{2}}-1\right) . \end{aligned}$$
(52)

and the potential is written as

$$\begin{aligned} \left( \frac{dr}{d\phi }\right) ^{2}=V_{eff}, \end{aligned}$$
(53)

with

$$\begin{aligned} V_{eff}=r^{4}\left( \frac{E^{2}}{L^{2}}-\frac{f(r)}{r^{2}}\right) . \end{aligned}$$
(54)

Considering that the orbit equation exclusively relies on the impact parameter \(b=L/E\) at the juncture where the trajectory shifts (\(r=r_{ph}\)), we are obliged to impose the criteria \(dr/\left. d\phi \right| _{r_{ph}}=0\) or equivalently \(V_{eff}=0,\quad V_{eff}^{\prime }=0\), as discussed in reference [157, 158]. This leads to the subsequent relationship for the impact parameter at the turning point:

$$\begin{aligned} b^{-2}=\frac{f(r_{ph})}{r_{ph}^{2}}. \end{aligned}$$
(55)

To determine the radius \(r_{ph}\) of the photon sphere, it is necessary to enforce the requirements \(dr/\left. d\phi \right| _{r_{ph}}=0\) and \(d^{2}r/d\phi ^{2}|_{r_{ph}}=0\). This results in the subsequent equations:

$$\begin{aligned} \frac{d}{dr}\left( \frac{r^2}{f(r)}\right) _{r_{ph}}=0, \end{aligned}$$
(56)
$$\begin{aligned} \frac{f^{\prime }\left( r_{ph}\right) }{f\left( r_{ph}\right) }-\frac{2}{r_{ph}}=0. \end{aligned}$$
(57)

By substituting Eq. (55) into Eqs. (56) and (57), one can straightforwardly ascertain the position of the photon sphere \(r_{ph}\) and the pivotal impact parameter \(b_{crit}\). Consequently, the structure of Eq. (52) can be reformulated as:

$$\begin{aligned} \left( \frac{dr}{d\phi }\right) ^{2}=\left( \frac{r^4 f(r_{ph})}{r_{ph}^2 }-r^2f(r)\right) . \end{aligned}$$
(58)

When computing the shadow radius \(R_{sh}\) as perceived by an observer positioned at \(r_0\), it is conventional to utilize the angle \(\alpha _{\textrm{sh}}\) formed between the trajectory of the light ray and the radial direction, in the subsequent manner [157]:

$$\begin{aligned} \cot \theta _{\textrm{sh}}=\left. \frac{1}{\sqrt{f(r)r^2}}\frac{dr}{d\phi }\right| _{r=r_{0}}. \end{aligned}$$
(59)

and

$$\begin{aligned} \cot ^{2}\theta _{\textrm{sh}}=\frac{r_0^2 f(r_{ph})}{r_{ph}^2f(r_0)}-1, \end{aligned}$$
(60)

in whichFootnote 1 and using \(b_{cr}\) of (55), gives

$$\begin{aligned} \sin ^{2}\theta _{\textrm{sh}}=\frac{b_{\textrm{cr}}^{2}f\left( r_{0}\right) }{r_0^2}. \end{aligned}$$
(61)

The shadow radius of the black hole concerning a stationary observer at \(r_{0}\) is given by:

$$\begin{aligned} R_{\textrm{sh}}=r_{0}\sin \theta _{\textrm{sh}}=\sqrt{\frac{r_{ph}^2f\left( r_{0}\right) }{f\left( r_{ph}\right) }}, \end{aligned}$$
(62)

where for a static observer at far away distance reads as

$$\begin{aligned} R_{\textrm{sh}}=\frac{r_{p h}}{\sqrt{f\left( r_{p h}\right) }} \end{aligned}$$
(63)

Since in limit \(r_{0} \rightarrow \infty \), then \(f\left( r_{0}\right) \rightarrow 1\).

Fig. 15
figure 15

Shadow cast by the black hole, with varying parameter \(\nu \). The rest of the parameters are chosen as follows: \(\Lambda =0\), \(e=1\), \(d=4\),, \(m=0.8\), \(\mu =2\), \(\Theta =-1\), \(a_1=a_2=a_3=a_4=1\), \(\beta =1\), and \(\chi =1\)

Fig. 16
figure 16

The shaded regions in dark gray and light gray correspond to the areas consistent with the Event Horizon Telescope (EHT) horizon-scale image of Sgr A* at \(1\sigma \) and \(2\sigma \) confidence levels, respectively for \(\Lambda =0\), \(e=1\), \(d=4\),, \(m=0.8\), \(\mu =2\), \(\Theta =-1\), \(a_1=a_2=0\), \(a_3=a_4=1\), \(\beta =1\), and \(\chi =1\)

We have now reached a point where we can effectively elucidate the influence of the underlying parameter \(\nu \) on the dimensions of the shadow radius within a framework of spherical symmetry. In Fig. 15, we depict the shadows produced by varying values of \(\nu \). Figure 15 shows the influence of the magnetic charge on the radius of the shadow. It becomes clear that the parameter \(\nu \) plays a pivotal role in diminishing the size of the shadow until \(\nu \) reaches a value of 1.8. Beyond this threshold, a remarkable and rapid expansion of the shadow becomes evident. It is clearly shown that the shadow radius decreases when \(\nu \) is increased, up to a certain value, and then increases when \(\nu \) is increased. Figure 16 displays the variation of the shadow radius concerning the parameter \(\nu \) in the black hole (solid curve) regimes. Additionally, the graph incorporates constraints derived from observational data, specifically the Event Horizon Telescope (EHT) image of Sgr A*.

6 Summary and conclusion

In this study, we have investigated dyonic black holes of massive gravity sourced by quasitopological electromagnetic field in diverse dimensions. First, we have figured out the exact solution of the field equations and looked at how the graviton’s mass, dimensionality parameter, and electromagnetic charges affected its geometrical properties. We have concluded that the solution (19) describes dyonic black holes with inner and outer horizons for any non-negative value of the black hole’s geometric mass such that \(\mu \ne \mu _{ext}\). Correspondingly, when \(\mu =\mu _{ext}\), the dyonic black hole has a single event horizon. Additionally, there also exists a critical value \(m_c\) of the graviton’s mass for which the solution (19) has been demonstrated to describe black holes with inner and outer horizons for \(m<m_c\), an extreme black hole for \(m=m_c\), and naked singularities for \(m>m_c\). We have also revealed that as the dimensionality parameter rises, the radii of inner and outer horizons grow. Meanwhile, when the magnitudes of charges \(\nu \) and e are on the rise, the inner horizon broadens while the outer horizon remains unaltered. Furthermore, the solution addressing d-dimensional dyonic black holes of ETG can be deduced if one plugs \(m=0\) in Eq. (19). Similarly, the neutral black holes of massive gravity would be recovered by putting \(e=\nu =0\) in the resultant solution.

Next, we have examined thermodynamic properties of dyonic black holes and their local stability. It is concluded that based on the behaviour of temperature and selection of the graviton’s mass, electric and magnetic charges, and the dimensionality parameter, the smaller black holes may not be physical while the larger black holes are physical. We also noticed that the horizon radii of extreme black holes are profoundly affected by variation of these parameters. Additionally, the first law of thermodynamics for the dyonic black holes of (19) was also presented. Regarding the investigation of local thermodynamic stability, we realized that there exists two singular points \(r_1\) and \(r_2\) at which heat capacity is infinite. These divergences correlate to second-order phase transitions of black holes. We have encountered that the zones of local stability are \((0,r_1)\) and \((r_2,\infty )\). However, the black holes whose outer horizon radii belong to \((r_1,r_2)\) are locally unstable. In addition, the horizon of extreme black hole are shown to be greater in higher spacetime dimensions. It has also been noted that the charges \(\nu \) and e have a significant impact on the regions of local stability and phase transition points. For instance, as the magnitudes of electric and magnetic charges are on rise, \(r_1\) grows while \(r_2\) shrinks. We have additionally looked at how thermal fluctuations alter the thermodynamic quantities of the resultant dyonic black holes of massive gravity. By employing the logarithmic correction to the entropy of black hole, it became apparent that though the phase transition points do not depend on this correction, the zones of local stability are highly influenced by changing the values of \(\xi \). Last, we are now poised to uncover the impact of the parameter \(\nu \) on the spherical symmetry shadow size. In Fig. 15, shadows are displayed for various \(\nu \) values. Evidently, as \(\nu \) increases, the shadow size initially decreases until reaching \(\nu =1.8\) after which it rapidly expands.

Study of the phenomenas such as critical behaviour, quasi-normal modes, quantum evaporation and shadow cast of the resultant dyonic black holes could be attractive. One can also explore that how quasitopological electromagnetic field affects the physical properties of rotating black branes of massive gravity. Accordingly, physical characteristics of the black holes of other modified gravities within the framework of quasitopological electromagnetism may also be relevant. These concepts have been set aside for our upcoming work.