如何在Play Framework 2中安装RestFB插件

时间:2013-11-04 07:52:19

标签: java playframework-2.0 restfb

我正在使用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

我很感激,如果有人设法妥善安装它,请给我一些提示/说明。谢谢!

1 个答案:

答案 0 :(得分:1)

https://github.com/revetkn/restfb

  

RestFB是一个纯Java Facebook Graph API和旧的REST API客户端   没有外部依赖。

所以收集图书馆:

"com.restfb"    % "restfb" % "1.6.12"

The %% is just used for Scala libraries.