Hello freelancers,
I need a sample Facebook application written in PHP which does the following:
- check if user is logged in into his facebook account
- if is not logged in, use OAuth with some request permissions and redirect him to the login page (you can use a pop-up dialog also)
- if is logged in, redirect him to this application
- before accesing the application, put a share button to share the application with his friends and a message that he must like a page in order to have access to the application (the page will be a sample facebook page; the like button must be linked to that page like button)
- if user liked that page, than grant access to the application
- the application should display a "Hello <FirstName> <LastName>. You are a <Gender>". Also, when this message is displayed, automatically post it to his facebook wall.
I guess is pretty simple. I am a coder and I know how much time takes to code something like that. I made one, but I got stuck at the "like" section.