gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-11-30 11:26:35 25 4
gpt4 key购买 nike

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

如果有人设法正确安装它,请给我一些提示/说明,我将不胜感激。谢谢!

最佳答案

https://github.com/revetkn/restfb :

RestFB is a pure Java Facebook Graph API and Old REST API client with no external dependencies.

因此收集图书馆:

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

The %% is just used for Scala libraries.

关于java - 如何在 Play Framework 2 中安装 RestFB 插件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19763599/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com