我正在研究在 Xcode 中解析 Facebook Graph API 响应的项目。获得响应成功,但我是通过 Xcode 解析 Facebook API 响应的新手。
{
"data": [
{
"category": "Sports",
"name": "TennisClubbers",
"access_token": "CAACEdEose0cBACQZCQkbeQjW4NpjxTHU6Hdr4vErEhvAQhAlraGJuNkoa76tXn9keSFGGRW2YXEaPe6LzNwkOeN9YFFX02g7QvHDbmUFeYcFh2oEjAHrdgmxyEL9NwvTH7R5B3LKvILhfZCpluLg6VjLcYBsNmOxKKOhFVqusJtblDzv7zoZAJC2GkEmdXs1R65f9meVwZDZD",
"perms": [
"ADMINISTER",
"EDIT_PROFILE",
"CREATE_CONTENT",
"MODERATE_CONTENT",
"CREATE_ADS",
"BASIC_ADMIN"
],
"id": "330130543706625"
},
{
"category": "Sports",
"name": "SoccerClubbers",
"access_token": "CAACEdEose0cBAAVinXUUr6nzZCJeWExBPOYV3RltkutoDLOMcsqh4o52Cg0utC15HJI20u9ezFMsIl9SquVVZBWWHIbTC36U0PH8K9k0rgCANxSafdkuDE71sluPuFqPF4sVsO3tnlKu7DsxQf9TjKEZAVrl0sIouZBGMkopcVllaT1ARhg3SDFIyQZAyxKrZCRHxitnIFsgZDZD",
"perms": [
"ADMINISTER",
"EDIT_PROFILE",
"CREATE_CONTENT",
"MODERATE_CONTENT",
"CREATE_ADS",
"BASIC_ADMIN"
],
"id": "239810846118768"
}
],
任何人都可以共享 XCode 行来解析 Facebook API 响应数据并在单独的变量中获取类别、名称和 ID。