PHP TwitSelect

First of all, thanks for purchasing PHP TwitSelect! I hope you find it useful and enjoyable!

This PHP script allows you to easily implement Twitter and tweeting into your website via selected text. The idea is that your users can select text on your site, and post it as an update on their Twitter profile.

Using the script

Here are the steps you have to take to get this script running on your website:

Go to twitter.com/oauth_clients, sign in if you haven't already. Click "register a new application". Set the icon, name, description, application website, organization, and website as you need, then fill out the application type as "browser", and the callback url as http://yoursite.com/path/to/tweet.php?callback So for example, it could be: http://example.com/tweet/tweet.php?callback

It is important that you do not forget the ?callback at the end of the callback url or else the script won't work properly. Now set the default access type as Read & Write, and you probably won't be using Twitter to authenticate users on your site unless you already have an API set up.

Once you have your application registered, you need to get the comsumer key, and the consumer secret from the page following the registration. Open up ts_config.php in this folder and edit the variables accordingly.

Now, for the pages of your site you wish to have TwitSelect on, include the ts_external.js and that's it!

Upload all the files to your server and you are ready to go!

Happy coding!