GithubHelp home page GithubHelp logo

fb-sdk-cljs's Introduction

facebook sdk for cljs

  • facebook javascript sdk wrapper for clojurescript

  • Clojars Project

  • Dependencies Status

Feature.

  • just facebook sdk.js wrapper.

  • all response callback data converted by (js->clj response :keywordize-keys true)

  • all input dictionary data converted by (clj->js dicionary)

Usage

(fb/get-login-status
 (fn [response]
   (case (:status response)
     "connected"
     (.log js/console "connected")
     ;; else
     (fb/login #(.log js/console "else-" %) {:scope "email"}))))

Known bug

example.

please check this file - https://github.com/netpyoung/fb-sdk-cljs/blob/master/test/fb_sdk_cljs/api_test.cljs

Debuging this project

boot.user=> (start-repl)

Externs.

Api

TODO

  • docker
  • headless browser test

REF.

fb-sdk-cljs's People

Contributors

netpyoung avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

fb-sdk-cljs's Issues

how to use this

Hi,

I am trying to use this library in my project. I added [fb-sdk-cljs "0.1.0-SNAPSHOT"] to my project.clj and it downloads ok. Then I try to require it like [fb-sdk-cljs.core :as fb] and my ide finds the files ok but when I try to compile my clojurescript files, I get:

WARNING: No such namespace: fb-sdk-cljs.core at line 1 src/cljs/test_project/core.cljs
WARNING: Required namespace not provided for fb-sdk-cljs.core

load-sdk's callback is never called

Hi,

I try to use the library and found weird (at least for me) behaviour.
When I use it in development mode it works OK (with figwheel, started from REPL). But after making an uberjar and launch from command line, it doesn't.

Tags are there:

<html>
  <head>
    ...
    <script id="fb-sdk-cljs" async="" src="//connect.facebook.net/en_US/sdk.js"></script>
    ...
    <style type="text/css">{ FB STYLESHEET }</script>
  </head>
  <body>
    ...
    <div id="fb-root" class=" fb-reset">...</div>
  </body>
</html>

It means, that load-sdk is called and finished it work. In the network monitor I see, that FB SDK JS is loaded, too. But, for some reason, callback is not called.

Do you have any ideas why it happens? I'm glad to have any help here!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.