This content has been moved to the documentation wiki. Please click
here to access the latest, most up to date version.
Hello Everyone!
I know that some of you have been eager to integrate your social network’s existing member base with external applications such as your blog. Your wait is now over! We’ve released some APIs that will allow you to authenticate your members on an external website.
We’ve written a rough example that integrates a social network powered by Ning with a WordPress blog. The code is a bit longer than most of our how-tos, so I’ve attached it as a zip file for easier reading and hacking.
The attached zip file contains three files:
- Readme.txt: a repeat of the installation instructions and a list of some known issues
- ningid.php: The wordpress plugin which will rewrite your comments form to request a Ning ID email address and password
- ning-auth.php: The file that hits our APIs and authenticates your members against your social network. The rewritten comments form will actually post comments here as an intermediate step in the normal comment submission process
To install this plugin please follow these steps:
- Open each of the two php files included in the zip file with a text editor and update the configuration fields at the top of each with the information from your social network and blog
- Copy the entire directory from the zip file into your /wp-content/plugins directory
Please keep in mind that this is a developer example. It has not been tested in depth and there are some known issues. For example, if you’ve customized your templates, you may need to tweak
ningid.php a bit in order to have the modified comment form render correctly.
Happy hacking!
Mike
Update (11/28/2007): If you're not interested in learning about the APIs and really just want to integrate your blog with your WordPress blog, check out
this thread which contains a more polished version of this example.