Mobile Edge Computing (MEC) provides a promising way to tackle computation-extensive tasks. While the resources of MEC are limited, D2D collaborative offloading is taken into consideration in existing literature. However, most of the existing schemes ignore D2D users' social attributes like selfishness and profit-seeking. In this paper, a hybrid computation offloading and resource allocation scheme is proposed, which includes D2D offloading mode and cellular offloading mode. In this scheme, the D2D-selected strategy, mode selection policy, offloading ratio and computation resource assignment are all considered. Firstly, a revenue-maximization problem of request users is formulated. The problem is non-convex and is difficult to solve in a polynomial time. Then, we decompose it into two sub-problems, which mean social-aware D2D-selected problem and offloading optimization problem. The former one is a matching problem and solved by Hungarian Algorithm while the after one is convex and is solved by an iterative algorithm with the adoption of Lagrange multiplier method. At last, Simulation results show the effectiveness of proposed scheme compared with other baseline schemes.