I need a simple PHP script that I can include in my project to upload a photo into a Facebook album of the user that is logged in.
I have a website with a photo gallery, I want the user to click on a button that will upload the selected photo into his/her Facebook album. Don't write a complete website just the function in PHP that I can include into my project and that I can call from a function.
NOTE: I do not want complicated files to include into the project you must make this simple and efficient. My main project is in CodeIgniter ideally if you can write this script as a helper function that I can include into the project it would be ideal.