更新Pod后使用未声明的类型'GraphRequestResult'

时间:2019-06-18 21:00:43

标签: ios swift facebook-graph-api

我正在使用新的facebook图表请求,并且在更新了pod后我收到了错误

  

<使用未声明的类型'GraphRequestResult'>

let graphRequest = GraphRequest(graphPath: kGraphPathMe, parameters: ["fields":"id,email,last_name,first_name,picture"], tokenString: accessToken.tokenString, version: .init(), httpMethod: .get) 

graphRequest.start {(response: HTTPURLResponse?, result: GraphRequestResult<GraphRequest>) in
        switch result {
        case .success(let graphResponse):
            if let dictionary = graphResponse.dictionaryValue {
                completion(FacebookUser(jsonDict: dictionary))
            }
            break
        default:
            print("Facebook request user error")
        }
    }

1 个答案:

答案 0 :(得分:1)

  

检查此代码

plot_likeliness_facetted <- function(town_property_table){
  g <- ggplot(town_property_table, aes(Property, Town)) +
    geom_tile(aes(fill = Property_value, width=.9, height=.9)) +
    theme_classic() +
    theme(axis.text.x = element_text(angle = 90, hjust = 1, vjust=0.5),
          strip.text.y = element_text(angle = 0), aspect.ratio = 1) +
    scale_fill_manual(values = Property_col_vector) +
    facet_grid(Country ~ .,
               scale = 'free_y', space = 'free')
  return(g)
}