I Have an Idea for a Change to Facebook. How Can I Protect My Idea?
Apply now to be an Entrepreneur 360™ company. Let us tell the world your success story. Get Started »
Also, depending on how such an agreement is worded, a little change here and there to your idea could change it from "your idea" to "their idea" -- and cut you out of the loop.
You’ll want to speak to an intellectual property attorney who understand software deals to get good sense of your options and the strategy that can best protect you.