I do have a PHP page with sample content located at: [url removed, login to view]
When you click on the "Sample content" if you're not logged to FB, the page asks the end user for their user & pass. Once you login, the sample page appear on your timeline as Liked. If you're logged to your FB prior accessing the sample page, the like button is activated and the Sample page appears as liked on your timeline.
1. the script to be modified and if user is not logged into their FB account, the popup to be disabled, so only logged FB users can add the likes on their timeline.
2. The entire code from the body to be modified, so it can be placed in the header ONLY, as the script will be used for 100's of 1000's of pages and placing a source in the body won't make sense.