Facebook ordered to turn over data regarding thousands of apps