nsanta / fbgraph_example Goto Github PK
View Code? Open in Web Editor NEWRails 3 app example, using fbgraph gem
Rails 3 app example, using fbgraph gem
app/controllers/oauth_controller.rb:4:in `start'
i got the below error when trying to use the application ....
please help ...
{
"error": {
"type": "OAuthException",
"message": "Invalid redirect_uri: The Facebook Connect cross-domain receiver URL (http://localhost:3000/oauth/callback) must have the application's Connect URL (http://web1.tunnlr.com:10939/) as a prefix. You can configure the Connect URL in the <a href="http://www.facebook.com/developers/editapp.php?app_id=114709451898747\">Application Settings Editor."
}
}
I replaced the client_id with the application_id provided by facebook for our web-app. Also replaced the secret_id with our application_secret. When facebook redirects back to the fbgraph_example here then, I get a 400 error during the process_callback request. Does this work for everyone else? Did I do something wrong?
TypeError in OauthController#callback
can't convert Hash into Integer
Stack Trace:
typhoeus (0.2.4) lib/typhoeus/easy.rb:294:in easy_setopt_long' typhoeus (0.2.4) lib/typhoeus/easy.rb:294:in
set_option'
typhoeus (0.2.4) lib/typhoeus/easy.rb:217:in post_data=' typhoeus (0.2.4) lib/typhoeus/easy.rb:180:in
request_body='
typhoeus (0.2.4) lib/typhoeus/hydra.rb:165:in get_easy_object' typhoeus (0.2.4) lib/typhoeus/hydra.rb:133:in
get_from_cache_or_queue'
typhoeus (0.2.4) lib/typhoeus/hydra.rb:79:in queue' faraday (0.6.1) lib/faraday/adapter/typhoeus.rb:38:in
call'
faraday (0.6.1) lib/faraday/request.rb:88:in run' faraday (0.6.1) lib/faraday/request.rb:28:in
run'
faraday (0.6.1) lib/faraday/connection.rb:170:in run_request' oauth2 (0.4.1) lib/oauth2/client.rb:63:in
request'
oauth2 (0.4.1) lib/oauth2/strategy/web_server.rb:15:in get_access_token' fbgraph (1.8.0) lib/fbgraph/authorization.rb:17:in
process_callback'
app/controllers/oauth_controller.rb:8:in `callback'
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.