Facebook and Yahoo have settled their patent row and formed an advertising alliance. Yahoo had sued Facebook in March claiming…