草庐IT

GraphResponse

全部标签

ios - 如何从 Facebook Graph API GraphResponse 协议(protocol)访问数据

我是swift的新手,现在正在研究Facebookgraphapi。我无法访问来自图形请求的数据。structMyProfileRequest:GraphRequestProtocol{structResponse:GraphResponseProtocol{init(rawResponse:Any?){//DecodeJSONfromrawResponseintootherpropertieshere.letjson=JSON(rawResponse!)letuserDef:[String:String]=["username":json["name"].stringValue,"l