Coder Social home page Coder Social logo

Comments (3)

hugomaiavieira avatar hugomaiavieira commented on June 13, 2024 5

One possible reason for this error is that :hackney was not started. You have to start it first, using Application.ensure_all_started(:hackney) for example.

I've ran into the same problem when using ExAws in a mix task.

from facebook.ex.

mweibel avatar mweibel commented on June 13, 2024

Hrm, not sure. To check it I created a new project from scratch and followed the docs and all worked.
Can you add some more details to how you ran Facebook.me etc?

my example app I did as follows:

$ mix new tryouts
$ cd tryouts
$ vi mix.exs
# added facebook as dependency:
  # Run "mix help deps" to learn about dependencies.
  defp deps do
    [
      {:facebook, "~> 0.20.0"}
      # {:dep_from_hexpm, "~> 0.3.0"},
      # {:dep_from_git, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.1.0"},
    ]
  end

$ mix deps.get
$ mix compile
$ vi lib/tryouts.ex
# add Facebook.me("first_name", "TOKEN") to the hello function, then exit vi

$ mix compile
$ iex -S mix
iex(1)> Tryouts.hello

Obviously I get a invalid access token then because I didn't add the necessary config and didn't get a proper access token, but it works without the error you encounter.

from facebook.ex.

sebastialonso avatar sebastialonso commented on June 13, 2024

Thanks Michael. Today it works great, maybe I missed something yesterdar. Thanks anyway!

from facebook.ex.

Related Issues (19)

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.