2011-08-29 47 views

回答

2

使用file_get_contents方法。像這樣

$contents = json_decode(file_get_contents(http://www.graph.facebook.com/me/friends?access_toke=xyz)); 

$ contents包含您的朋友姓名和ID的數組。