ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/facebook/trunk/facebookapi_php5_restlib.php
(Generate patch)

Comparing facebook/trunk/facebookapi_php5_restlib.php (file contents):
Revision 980 by douglas, 2007-11-14T09:13:38-08:00 vs.
Revision 981 by douglas, 2008-01-16T16:47:47-08:00

# Line 315 | Line 315 | function toggleDisplay(id, type) {
315    }
316  
317    /**
318 <   * Returns true if logged in user is an admin for the passed page
318 >   * Returns true if logged in user is an admin for the passed page
319     * @param int $page_id target page id
320     * @return boolean
321     */
# Line 335 | Line 335 | function toggleDisplay(id, type) {
335    }
336  
337    /**
338 <   * Returns true if logged in user is a fan for the passed page
338 >   * Returns true if logged in user is a fan for the passed page
339     * @param int $page_id target page id
340     * @param int $uid user to compare.  If empty, the logged in user.
341     * @return bool
# Line 1348 | Line 1348 | function toggleDisplay(id, type) {
1348               'no_data' => $no_data));
1349    }
1350  
1351 +  /**
1352 +   * Get the properties that you have set for an app.
1353 +   *
1354 +   * @param  properties  list of properties names to fetch
1355 +   * @return             a map from property name to value
1356 +   */
1357 +  public function admin_getAppProperties($properties) {
1358 +    return json_decode($this->call_method
1359 +                       ('facebook.admin.getAppProperties',
1360 +                        array('properties' => json_encode($properties))), true);
1361 +  }
1362 +
1363 +  /**
1364 +   * Set properties for an app.
1365 +   *
1366 +   * @param  properties  a map from property names to  values
1367 +   * @return             true on success
1368 +   */
1369 +  public function admin_setAppProperties($properties) {
1370 +    return $this->call_method
1371 +      ('facebook.admin.setAppProperties',
1372 +       array('properties' => json_encode($properties)));
1373 +  }
1374 +
1375 +
1376 +
1377    /* UTILITY FUNCTIONS */
1378  
1379    public function call_method($method, $params) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines