The rapid development of mobile multimedia services integrated with online and offline social networks has made the mutual transmission of smart devices more frequent. Device to Device relay communication (D2D relay communication) can extend the transmission range of shared multimedia services, further reducing the burden on the base stations. However, when multimedia services are transmitted by D2D relay communication, the selfishness of the relay nodes affects the quality of the transmission. In order to solve this problem, the integration of social factors has become a common research topic. However, social factors generally come from multi-dimensional information. The more kinds of information, the more hidden information, and the measurement of social relations will become extremely difficult. Hence, this paper focuses on the measurement of social relationships based on multi-dimensional information and then combines physical domains to choose relay nodes. Firstly, the transmission performance of D2D relay communication is analyzed in the physical domain. Then, in order to better integrate multi-dimensional information, we construct a hypernet architecture based on spatiotemporal-user-location-category and quantify the edge weights. Three categories of weighted super-edge structures are defined to capture a variety of hidden social relationships, and the social relationship strength of any two users is measured. Finally, a relay selection algorithm that maximizes the social rate is proposed, which combines social relationships of multi-dimensional information and quality of physical transmission. The simulation results show that the Based on Maximum Social Rate for Relay Selection Algorithm (MSRRS) proposed in this paper has a significant improvement in transmission quality and transmission stability for multimedia application compared with the traditional relay selection algorithm. INDEX TERMS D2D, relay communication, social awareness, hypernet, multimedia transmission. How to meet people's growing demand for communication services with limited resources is an urgent problem to be solved [5]. D2D communication is a technology for communication of adjacent terminals [6], [7]. After the establishment of the D2D communication link between two adjacent terminals, data communication among devices will no longer need the core network's support or intermediate equipment [8], [9].