First, turn the cube so that the edges are in the UL, UR, and DR positions (upper-left, upper-right, down-right). Then, execute this:
F B' R2 F' B U2
Make sure when you do this that
B' rotate the two faces in the same direction if you're looking at the cube from the front.
If it didn't work the first time, do it again and it should be solved.
Here's a brief explanation of why this works. The algorithm performs a couple swaps on pairs of edges. You have the upper front row of three pieces, and the upper back row. The first two moves (
F B') move them next to two edges which need swapping. Then,
R2 swaps the two rows as well as the UR and DR edge.
F' B then moves the two swapped sets back, and
U2 swaps the two sets as well as the UL and UR edges.
All in all, this algorithm moves UR to DR, DR to UL, and UL to UR. Since there are two unsolved positions, if you didn't solve it the first time, you can just execute it again and it will take you to the solved position.