Skip to content

Hi I am using your lib with facebook, but went error. #4

@erickhsiao

Description

@erickhsiao

Hi.
Configuration as following

config =OAuth2Ex.config(
  id:            client_id],
  secret:        client_secret],
  authorize_url: auth_url],
  token_url:     token_url],
  scope:         premissions],
  callback_url:  callback]
)

token=OAuth2Ex.Token.browse_and_retrieve!(config, receiver_port: oauth_port])
    response = OAuth2Ex.HTTP.get(token, token_url])

I guess I should set callback_url same the url of this function.
Because I run code, server wait there for something..

However, facebook give me following message :

{
   "error": {
      "message": "Invalid redirect_uri: Given URL is not allowed by the Application configuration.",
      "type": "OAuthException",
      "code": 191
   }
}

I've looked into the dropbox doc, and the implementation seems same as facebook.
So I don't know what's wrong around here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions