The invention relates to the technical field of sockets, in particular to an integrated rotary power taking socket, a wall type extension socket wiring rail and a light rail type extension socket. According to the wall type extension socket wiring rail, an power taking arm based on an integrated rotary power taking socket., the distance between a first limiting frame and a second limiting frame isdesigned to be matched with the width of the power taking arm, the heights of the first limiting frame and the bottom plane are designed to be matched with the heights of the two sides of the power taking arm, and a strip-shaped groove in the middle of the designed bottom plane is matched with a ground wire connecting end of the integrated rotary power taking socket, so the socket is guided to becorrectly inserted at the first moment, rotation is performed then by taking the ground wire connecting end as a circle center, the two sides of the power taking arm are guided to reach the power taking position at the next moment, under the elastic action of the elastic live wire power taking assembly, the elastic zero wire power taking assembly and the elastic ground wire connecting assembly ofthe socket, the live wire power taking end and the zero wire power taking end are firmly connected with the first electric connecting piece and the second electric connecting piece in a face-to-facemode, and good power transmission between the wiring rail and the power taking socket is guaranteed.