I have an application that provides code generation service to my users.
I need to restrict the use of my existing web application to Facebook users. In addition, when using my application, is published in its wall an advertisement for my application. Only will be able to use my service 3 times for each publication in the facebook wall. The application must be developed in php and low OOP.