1
我在Facebook中實現Graph API以從「https」站點以JSON方式檢索數據。從http獲取JSON鏈接
我用下面的代碼
FB.getLoginStatus(function(response) {
if (response.status === 'connected') {
var accessToken = response.authResponse.accessToken;
document.getElementById("statusCheck").innerHTML = accessToken;
$.getJSON('https://graph.facebook.com/me/friends?access_token=' . accessToken,
function(dataJSON){
//The rest
});
}
});
此後未能我試圖用$就沒有數據類型的規範和解析與$ .parseJSON的數據,但沒有信息在所有
檢索我的問題真的是雙重的:我的JSON是檢索問題還是協議是「https」的事實?如果不能在外部https協議上使用getJSON,我如何恢復Facebook朋友的哈希值?
哈哈,哇,我覺得啞巴...謝謝。 – Vivek 2011-12-24 04:12:42
:) np Vivek ..繼續編碼... – 2011-12-24 04:18:08