Based on bifurcation analysis, the synchronization behaviors of two identical pancreatic b-cells connected by electrical and chemical coupling are investigated, respectively. Various firing patterns are produced in coupled cells when a single cell exhibits tonic spiking or square-wave bursting individually, irrespectively of what the cells are connected by electrical or chemical coupling. On the one hand, cells can burst synchronously for both weak electrical and chemical coupling when an isolated cell exhibits tonic spiking itself. In particular, for electrically coupled cells, under the variation of the coupling strength there exist complex transition processes of synchronous firing patterns such as ''fold/limit cycle'' type of bursting, then anti-phase continuous spiking, followed by the ''fold/torus'' type of bursting, and finally in-phase tonic spiking. On the other hand, it is shown that when the individual cell exhibits square-wave bursting, suitable coupling strength can make the electrically coupled system generate ''fold/Hopf'' bursting via ''fold/fold'' hysteresis loop; whereas, the chemically coupled cells generate ''fold/ subHopf'' bursting. Especially, chemically coupled bursters can exhibit inverse period-adding bursting sequence. Fast-slow dynamics analysis is applied to explore the generation mechanism of these bursting oscillations. The above analysis of bursting types and the transition may provide us with better insight into understanding the role of coupling in the dynamic behaviors of pancreatic b-cells.