MCPcopy Create free account
hub / github.com/codecombat/codecombat / loadFacebookFriends

Method loadFacebookFriends

app/views/ladder/LadderTabView.js:134–141  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

132 onConnectedWithFacebook () { if (this.connecting) { return location.reload() } }
133
134 loadFacebookFriends () {
135 // @addSomethingToLoad('facebook_friends')
136
137 this.fbFriendRes = this.supermodel.addSomethingResource('facebook_friends', 0)
138 this.fbFriendRes.load()
139
140 return FB.api('/me/friends', this.onFacebookFriendsLoaded)
141 }
142
143 onFacebookFriendsLoaded (response) {
144 this.facebookData = response.data

Callers 1

checkFriendsMethod · 0.95

Calls 2

apiMethod · 0.80
loadMethod · 0.45

Tested by

no test coverage detected