0
$('#login').live('click',function(e){
$(this).hide();
login();
});
// login
function login(){
FB.login(function(response) {
if (response.authResponse != 'undefined' && response.authResponse != null) {
FB.getLoginStatus(function(response) {
// remember user ID
uID = response.authResponse.userID;
if(uID) getMostTagged();
});
} else { alert('User cancelled login or did not fully authorize.'); }
},{scope: 'user_photos,user_videos,user_photo_video_tags'});
}
// get friend with most pic tags
function getMostTagged(){
FB.api('/me/photos', {fields: 'tags'}, function(result) {
console.log(result);
}
問題是Safari中的結果沒有任何結果,但它在Firefox和Chrome中的工作正常...FB.api('/ me/photos',function(result){}在Safari中不返回任何內容