Getting an App’s 4-1-1
Problem
Is there any way for me to retrieve the general public information about an app?
Solution
Use the Application.getPublicInfo() method, and
pass in any one of the following properties for the target app:
application_idapi_keyapplication_canvas_name
Let’s say, for example, that you want to retrieve some information about the Zerofootprint Calculator. All three of the following will return the same array:
$appId = $facebook->api_client->application_getPublicInfo('8653633892');
$appAPI = $facebook->api_client->application_getPublicInfo
('d41570392c4b0d08a794f4a66b91a2a9');
$appCanvas = $facebook->api_client->admin_getPublicInfo('zfcalculator');Discussion
The returned array includes the properties in Table 9-6.
Table 9-6. Properties returned by Application.getPublicInfo()
Property | Zerofootprint Calculator example |
|---|---|
| 8653633892 |
| d41570392c4b0d08a794f4a66b91a2a9 |
| zfcalculator |
| Zerofootprint Calculator |
| http://photos-892.ll.facebook.com/photos-ll-sctm/v43/8/8653633892/app_2_8653633892_7652.gif |
| http://photos-892.ll.facebook.com/photos-ll-sctm/v43/8/8653633892/app_1_8653633892_3724.gif |
| |
| Zerofootprint Inc. |
| The Zerofootprint Calculator helps you measure your footprint on the environment. It takes just one minute to use and calculates how many tonnes of carbon you produce through driving, travel, diet, and home. |
| 300 |
| 1 |
The developers field ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access