Download Jar. Uses 3874K of libraries. Click here for Pure Java version (5611L/40K).
!7 lib 1400112 // RestFB import com.restfb.*; import com.restfb.json.JsonArray; import com.restfb.json.JsonObject; import com.restfb.types.Page; import com.restfb.types.Post; import com.restfb.types.Url; import com.restfb.types.User; p-exp { S accessToken = trim(loadTextFileMandatory(javaxSecretDir("fb-token.txt"))); FacebookClient fb = new DefaultFacebookClient(accessToken, Version.VERSION_2_5); User user = fb.fetchObject("me", User.class); Page page = fb.fetchObject("cocacola", Page.class); print("User name: " + user.getName()); print("Page likes: " + page.getLikes()); }
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: | 460 / 1131 |
Version history: | 3 change(s) |
Referenced in: | [show references] |