This resource will provide the basic idea for retrieving facebook lead ad. Facebook will send an trigger to this API whenever a facebook user submit a lead. As per the requirement you can hook any business logic like send email, write to database, etc.. Step by step documentation and source code is avaliable here>>