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 |
|
*/ |
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 |
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) { |