Objective Facebook JSFacebook 的 JavaScript 開發(fā)包封裝
Objective Facebook JS 使用面向?qū)ο蠓椒ǚ庋b了 Facebook 的 JavaScript 開發(fā)包。
示例代碼:
<script src="app.js"></script>
var FB = new OOFB('your_access_token_here');
// Get the info on Mark Zuckenberg (he's id is '4')
var mark = new FB.User(4);
// Since that is a promise, we can fire it up (to fetch the data) like this:
mark.get(function(user) {
console.log(user.name); // Prints "Mark Zuckerberg"
});評(píng)論
圖片
表情
