maxweber / clj-facebook-graph Goto Github PK
View Code? Open in Web Editor NEWA client for the Facebook Graph API based on clj-http and Ring
Home Page: http://clojars.org/clj-facebook-graph
A client for the Facebook Graph API based on clj-http and Ring
Home Page: http://clojars.org/clj-facebook-graph
Hi
The following warning is generated when attempting to compile/run my project that uses clj-facebook-graph:
WARNING: get already refers to: #'clojure.core/get in namespace: clj-oauth2.client, being replaced by: #'clj-oauth2.client/get
Afterwards. running the application fails with the following exception:
Exception in thread "main" java.lang.NullPointerException, compiling:(auth.clj:1)
at clojure.lang.Compiler$InvokeExpr.eval(Compiler.java:3342)
at clojure.lang.Compiler.compile1(Compiler.java:6985)
at clojure.lang.Compiler.compile1(Compiler.java:6975)
at clojure.lang.Compiler.compile(Compiler.java:7046)
at clojure.lang.RT.compile(RT.java:385)
at clojure.lang.RT.load(RT.java:425)
at clojure.lang.RT.load(RT.java:398)
at clojure.core$load$fn__4610.invoke(core.clj:5386)
at clojure.core$load.doInvoke(core.clj:5385)
at clojure.lang.RestFn.invoke(RestFn.java:408)
at clojure.core$load_one.invoke(core.clj:5200)
at clojure.core$load_lib.doInvoke(core.clj:5237)
at clojure.lang.RestFn.applyTo(RestFn.java:142)
at clojure.core$apply.invoke(core.clj:602)
at clojure.core$load_libs.doInvoke(core.clj:5271)
at clojure.lang.RestFn.applyTo(RestFn.java:137)
at clojure.core$apply.invoke(core.clj:604)
at clojure.core$use.doInvoke(core.clj:5363)
at clojure.lang.RestFn.invoke(RestFn.java:482)
at kk_backend.controllers.facebook$loading__4505__auto__.invoke(facebook.clj:1)
at clojure.lang.AFn.applyToHelper(AFn.java:159)
at clojure.lang.AFn.applyTo(AFn.java:151)
at clojure.lang.Compiler$InvokeExpr.eval(Compiler.java:3337)
at clojure.lang.Compiler.compile1(Compiler.java:6985)
at clojure.lang.Compiler.compile1(Compiler.java:6975)
at clojure.lang.Compiler.compile(Compiler.java:7046)
at clojure.lang.RT.compile(RT.java:385)
at clojure.lang.RT.load(RT.java:425)
at clojure.lang.RT.load(RT.java:398)
at clojure.core$load$fn__4610.invoke(core.clj:5386)
at clojure.core$load.doInvoke(core.clj:5385)
at clojure.lang.RestFn.invoke(RestFn.java:408)
at clojure.core$load_one.invoke(core.clj:5200)
at clojure.core$compile$fn__4615.invoke(core.clj:5397)
at clojure.core$compile.invoke(core.clj:5396)
at user$eval27.invoke(NO_SOURCE_FILE:1)
at clojure.lang.Compiler.eval(Compiler.java:6465)
at clojure.lang.Compiler.eval(Compiler.java:6455)
at clojure.lang.Compiler.eval(Compiler.java:6431)
at clojure.core$eval.invoke(core.clj:2795)
at clojure.main$eval_opt.invoke(main.clj:296)
at clojure.main$initialize.invoke(main.clj:315)
at clojure.main$null_opt.invoke(main.clj:348)
at clojure.main$main.doInvoke(main.clj:426)
at clojure.lang.RestFn.invoke(RestFn.java:421)
at clojure.lang.Var.invoke(Var.java:405)
at clojure.lang.AFn.applyToHelper(AFn.java:163)
at clojure.lang.Var.applyTo(Var.java:518)
at clojure.main.main(main.java:37)
Caused by: java.lang.NullPointerException
at clojure.lang.Compiler$ObjExpr.emitVar(Compiler.java:4728)
at clojure.lang.Compiler$DefExpr.emit(Compiler.java:395)
at clojure.lang.Compiler.compile1(Compiler.java:6984)
at clojure.lang.Compiler.compile(Compiler.java:7046)
at clojure.lang.RT.compile(RT.java:385)
at clojure.lang.RT.load(RT.java:425)
at clojure.lang.RT.load(RT.java:398)
at clojure.core$load$fn__4610.invoke(core.clj:5386)
at clojure.core$load.doInvoke(core.clj:5385)
at clojure.lang.RestFn.invoke(RestFn.java:408)
at clojure.core$load_one.invoke(core.clj:5200)
at clojure.core$load_lib.doInvoke(core.clj:5237)
at clojure.lang.RestFn.applyTo(RestFn.java:142)
at clojure.core$apply.invoke(core.clj:602)
at clojure.core$load_libs.doInvoke(core.clj:5271)
at clojure.lang.RestFn.applyTo(RestFn.java:137)
at clojure.core$apply.invoke(core.clj:602)
at clojure.core$require.doInvoke(core.clj:5352)
at clojure.lang.RestFn.invoke(RestFn.java:421)
at clj_facebook_graph.auth$loading__4505__auto__.invoke(auth.clj:1)
at clojure.lang.AFn.applyToHelper(AFn.java:159)
at clojure.lang.AFn.applyTo(AFn.java:151)
at clojure.lang.Compiler$InvokeExpr.eval(Compiler.java:3337)
... 48 more
Any insights?
Hi Max,
I never had problems with your library before.
Now when I try to fetch even the dumbest resource through your library I get:
Illegal character in query at index 58: https://graph.facebook.com/me/home?access_token=2227470867|2.cqLAKgq7wjHa3651huwZGg__.3600.1304877600.0-1712326620|kvvuu-IU1IAjIpG-XBT4pxUE6GE&limit=25&until=1304861820
[Thrown class java.net.URISyntaxException]
I don't know if it is due to the particular access token or somewhat, but I've never experienced nothing like this before, neither with 0.1.0 nor with the most recent version, 0.2.0.
I am using compojure and ring as well in order to build a simple webapp, may be this that may cause conflict (because I know that clj-facebook-graph uses ring as well).
Bye,
Alfredo
Required [clj-facebook-graph "0.4.0"]
, and got this:
(use 'clj-facebook-graph.auth)
=> clojure.lang.Compiler$CompilerException: java.lang.IllegalAccessError: read-json-from does not exist, compiling:(clj_facebook_graph/helper.clj:1:1)
java.lang.IllegalAccessError: read-json-from does not exist
Hi max,
in first place I'm very happy you have decided to start this project, I think it will be very useful.
Just a mental note: I haven't found a simple and permanent fix for the typo:
java.lang.ClassNotFoundException: clj_facebook_graph.FacebookGraphException (error_handling.clj:9)
This is normally fixed with lein compile, but not in this case (Am I missing some steps?)
I had to manually compile the Exception from the repl and put it into my project's classes directory.
One solution can be to create a java class for the Exception, so that lein compile can work directly from the command line.
Cheers,
Alfredo
I have an app that uses clj-faceboook-graph. For various reasons, we are still using Clojure 1.2.1. It seems that recent versions of this library no longer work with versions prior to 1.3.0?
If so, was this a conscious decision?
Would it be possible to support 1.2.1 in addition to 1.3.0?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.