Download Jar. Uses 3874K of libraries. Click here for Pure Java version (5611L/40K).
1 | !7 |
2 | |
3 | lib 1400112 // RestFB |
4 | |
5 | import com.restfb.*; |
6 | import com.restfb.json.JsonArray; |
7 | import com.restfb.json.JsonObject; |
8 | import com.restfb.types.Page; |
9 | import com.restfb.types.Post; |
10 | import com.restfb.types.Url; |
11 | import com.restfb.types.User; |
12 | |
13 | p-exp { |
14 | S accessToken = trim(loadTextFileMandatory(javaxSecretDir("fb-token.txt"))); |
15 | FacebookClient fb = new DefaultFacebookClient(accessToken, Version.VERSION_2_5); |
16 | |
17 | User user = fb.fetchObject("me", User.class); |
18 | Page page = fb.fetchObject("cocacola", Page.class); |
19 | |
20 | print("User name: " + user.getName()); |
21 | print("Page likes: " + page.getLikes()); |
22 | } |
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, iveijnkanddl, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1017461 |
Snippet name: | Test Facebook API [dev.] |
Eternal ID of this version: | #1017461/4 |
Text MD5: | 2c63da3653bb127439cb4e320acedeca |
Transpilation MD5: | 07748347f0c3583ff268a4595d10be49 |
Author: | stefan |
Category: | javax / networking |
Type: | JavaX source code (desktop) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-07-22 16:43:35 |
Source code size: | 619 bytes / 22 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 463 / 1136 |
Version history: | 3 change(s) |
Referenced in: | [show references] |