holaFB.init({version: "v2.7", appId:"xxxxxxxxxxxxxx"});
holaFB.login()
.then(function(resp) {
return holaFB.getInvitableFriends();
})
.catch(function(err) {
console.log(err);
})
HolaFB.prototype.setServerUrl(url)
设置项目在facebook的命名空间,设置之后,应用在facebook的url为//www.facebook.com/appcenter/
HolaFB.prototype.setAppNamespace(name)
HolaFB.prototype.init(options)
HolaFB.prototype.getLoginStatus()
HolaFB.prototype.getMe(options)
HolaFB.prototype.getPermissions()
HolaFB.prototype.hasPermission(permission)
HolaFB.prototype.getFriends(options)
HolaFB.prototype.getInvitableFriends(options)
HolaFB.prototype.getScores(options)
HolaFB.prototype.login(options)
HolaFB.prototype.logout()
HolaFB.prototype.share()
HolaFB.prototype.feed(options)
HolaFB.prototype.apiFeed(options)
HolaFB.prototype.send(url)
HolaFB.prototype.sendNotification(to, options)
HolaFB.prototype.sendScore(score)
HolaFB.prototype.sendChallenge(to, message, turn)
HolaFB.prototype.apiAppRequests(to, options)
HolaFB.prototype.apiChallenge(to, message, turn)
HolaFB.prototype.apiInvite(to, message)
HolaFB.prototype.apiRecommend(to, message)
HolaFB.prototype.getRequestInfo(id)
HolaFB.prototype.deleteRequest(id, callback)
HolaFB.prototype.send(url)