Archive for the ‘PHP’ Category

Posting to a Facebook wall using the Graph API

Saturday, May 28th, 2011

First, instantiate a new Facebook object. Nothing exciting here: require '../src/facebook.php'; $facebook = new Facebook(array( 'appId' => '..............', 'secret' => '..........................', )); As of PHP SDK version 3.0.0 you shouldn't use getSession() to verify a user's connectivity. Instead use getUser() directly: $user = $facebook->getUser(); Offer a login screen when the user is not ...

Simple article rewriter

Sunday, May 30th, 2010

A web based prototype of our article rewriter is available here. You can use it to enliven your (English) text or to create unique content. The script does not connect to a database but crawls the Internet to fetch synonyms. That may take a while, depending on the size of your ...

Adding a profile box and posting to the feed on facebook

Thursday, September 24th, 2009

Building an app is easy. At least that's what facebook states. Yet it can be quite a challenge to get started if you're not famliar with facebook's API as the documentation can be quite confusing. Besides, the API seems to be still under development and therefore subject to changes. Chances ...

WordPress LinkRoll Widget

Sunday, June 29th, 2008

The simple widget that runs in our sidebar presents a random selection of stored links. The script parses the <title> tags on the referred pages to name the links. To install it copy the script file to your plugin directory. Activate the widget in WordPress under Plugins, add it under Design->Widgets and ...

WordPress AdSense Widget

Wednesday, June 25th, 2008

We customized Mike Smullin's AdSense to meet the current specs. Our sidebar shows what it looks like. You can find our version right here. After installation and activation you only need to specify google_ad_client (your publisher ID) and google_ad_slot (to be pasted from the code provided by Google) on the ...

Google PageRank in PHP

Monday, June 23rd, 2008

To obtain your PageRank in PHP without a 403 Forbidden error you'll have to calculate the PageRank Checksum and send it with your request. This is the way to go: http://www.hm2k.com/projects/pagerank We have added a simple demo. Get your PageRank right here.