我正在使用Play Framework 2.1.3,并希望使用RestFB来处理Facebook Graph API,但我无法正确安装它。这是我的Build.scala
val appDependencies = Seq( "com.restfb" %% "restfb" % "1.6.12" ) val main = play.Project(appName, appVersion, appDependencies).settings( resolvers += Resolver.url("restfb (release)", url("http://revetkn.github.com/restfb/repo/releases/"))(Resolver.ivyStylePatterns), resolvers += Resolver.url("restfb (snapshot)", url("http://revetkn.github.com/restfb/repo/snapshots/"))(Resolver.ivyStylePatterns), )
在此之后我运行play update
但它返回:
[error] (*:update) sbt.ResolveException: unresolved dependency: com.restfb#restfb_2.10;1.6.12: not found
我很感激,如果有人设法妥善安装它,请给我一些提示/说明。谢谢!
答案 0 :(得分:1)
https://github.com/revetkn/restfb:
RestFB是一个纯Java Facebook Graph API和旧的REST API客户端 没有外部依赖。
所以收集图书馆:
"com.restfb" % "restfb" % "1.6.12"