[英]Get fb access token using JSON on client side
如何使用JSON檢索數據
我的示例代碼
test.js(客戶端)
function(){
$.getJSON("https://graph.facebook.com/oauth/authorize?client_id=appid&redirect_uri=http://domain.com/sample/index.php", function(data) {
alert(data.userName);
});
}
index.php(服務器端)
<?php
$aReturn['userName'] = "carlo2893";
echo json_encode($aReturn);
?>
但不會返回任何內容。
不確定要達到的目標,但是您很可能需要
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.