Skip to content

Instantly share code, notes, and snippets.

@timshadel
Created November 13, 2012 19:22
Show Gist options
  • Save timshadel/4067805 to your computer and use it in GitHub Desktop.
Save timshadel/4067805 to your computer and use it in GitHub Desktop.
What makes it media?
{
"template": {
"prompt_src": "graph:|profile/facebook.com|propmts:friends:connect#confirm_required",
"input": {
"name": "gref",
"prompt_src": "graph:|profile/facebook.com|propmts:friends:connect#gref",
"required": true,
"type": "gref"
},
"input": {
"name": "personal_message",
"prompt": "graph:|profile/facebook.com|propmts:friends:connect#personal_message",
"required": true,
"type": "text"
},
"actions": {
"send": {
"destination": "xmpp:romeo@montague.net?roster",
"prompt_src": "graph:|profile/facebook.com|propmts#send"
},
"cancel": {
"prompt_src": "graph:|profile/facebook.com|propmts#cancel"
}
}
}
}
{
"name": "Toby Campbell",
"gref": "graph:|profile/facebook.com|4165401",
"picture": {
"src": "graph:|profile/facebook.com|4165401:picture",
"prompt": "Toby's Profile Picture"
},
"friends": {
"inline": {
"gref": "graph:|profile/facebook.com|4165401#friends/a4b3c2",
"data": [
{
"name" : "Hugo S. Horton",
"gref" : "graph:|profile/facebook.com|250648607",
"picture" : { "src" : "graph:|profile/facebook.com|250648607:picture" }
},
{
"name": "Willie Dooley",
"gref" : "graph:|profile/facebook.com|230744115",
"picture" : { "src" : "graph:|profile/facebook.com|230744115:picture" }
},
{
"name": "Kimberly G. Roberts",
"gref" : "graph:|profile/facebook.com|417094541",
"picture" : { "src" : "graph:|profile/facebook.com|417094541:picture" }
},
{
"name": "Janie F. Dutra",
"gref" : "graph:|profile/facebook.com|317345331",
"picture" : { "src" : "graph:|profile/facebook.com|317345331:picture" }
}
],
"pagination": {
"next": { "gref": "graph:|profile/facebook.com|4165401#friends/c4b5a2", "target": "#friends/inline" }
}
},
"add": { "gref": "graph:|profile/facebook.com|templates:friends:connect", "target": "#friends/inline" }
},
"likes": {
"inline": {
"data": [
{
"name": "Hackbarth Crafts",
"category": "Website",
"gref": "graph:|pages/facebook.com|173809602759513",
"picture": { "src" : "graph:|pages/facebook.com|173809602759513:picture" },
"created_time": "2012-11-09T23:08:45+0000"
},
{
"name": "Ogden Sassy's",
"category": "Website",
"gref": "graph:|pages/facebook.com|258352677529726",
"picture": { "src" : "graph:|pages/facebook.com|258352677529726:picture" },
"created_time": "2012-11-03T19:54:30+0000"
},
{
"name": "Phillips Drafting",
"category": "Internet/software",
"gref": "graph:|pages/facebook.com|302628856454633",
"picture": { "src" : "graph:|pages/facebook.com|302628856454633:picture" },
"created_time": "2012-11-02T12:22:21+0000"
}
],
"pagination": { "src": "graph:|profile/facebook.com|4165401/likes?pagination" }
},
"add": {
"template": {
"input": {
"name": "gref",
"prompt_src": "graph:|profile/facebook.com|propmts:likes:add#gref",
"required": true,
"type": "string",
"size": 42
},
"input": {
"name": "added_at",
"prompt": false,
"required": true,
"type": "time"
},
"actions": {
"save": {
"gref": "graph:|profile/facebook.com|4165401#friends:before",
"prompt_src": "graph:|profile/facebook.com|propmts#save"
},
"cancel": {
"prompt_src": "graph:|profile/facebook.com|propmts#cancel"
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment