In order to find the direction of the net gravitational force, let's draw the forces acting on m1:
The direction F13 is pointing is given by:
Let's find the forces F12 and F13, and decompose the second one in its horizontal and vertical components using this angle:
Adding the vertical forces, we have:
Finally, the direction of the net force is given by:
(Let's use a negative Fy, since it's pointing down)