Date: 2007sep25
Subject: Facebook data API
Facebook documented a beta data access API but didn't update the sample
library. So I added these functions to my copy of facebookapi_php5_restlib.php
public function data_setUserPreference($pref_id, $value) {
return $this->call_method('facebook.data.setUserPreference', array('pref_id' => $pref_id, 'value' => $value));
}
public function data_setUserPreferences($values, $replace) {
return $this->call_method('facebook.data.setUserPreferences', array('values'=> $values, 'replace' => $replace));
}
public function data_getUserPreference($pref_id) {
return $this->call_method('facebook.data.getUserPreference', array('pref_id' => $pref_id));
}
public function data_getUserPreferences() {
return $this->call_method('facebook.data.getUserPreferences', array());
}
This doesn't cover the whole data API - just the functions I use.
Add a comment
Sign in to add a comment