moomerman / facebook_oauth Goto Github PK
View Code? Open in Web Editor NEW๐ซ DEPRECATED - Use https://github.com/arsduo/koala
License: MIT License
๐ซ DEPRECATED - Use https://github.com/arsduo/koala
License: MIT License
I'm preparing mime-types 2.0 for release, and it has some breaking API changes (not for most uses, but some esoteric features). The most important API change is that mime-types 2.0 no longer supports Ruby 1.8.
If this matters, the gemspec needs to be changed from >= 1.16
to ~> 1.16
.
Hi moomerman,
I've been using your gem for quite sometime and it's really good. However, for some reasons and only for some users when they post to facebook using facebook_oauth gem. I got this error.
OAuth2::Error
/Users/ncharass/.rvm/gems/[email protected]/gems/oauth2-0.5.1/lib/oauth2/client.rb:107:in request' /Users/ncharass/.rvm/gems/[email protected]/gems/oauth2-0.5.1/lib/oauth2/access_token.rb:98:in
request'
/Users/ncharass/.rvm/gems/[email protected]/gems/oauth2-0.5.1/lib/oauth2/access_token.rb:112:in post' /Users/ncharass/.rvm/gems/[email protected]/gems/facebook_oauth-0.3.0/lib/facebook_oauth/client.rb:58:in
_post'
/Users/ncharass/.rvm/gems/[email protected]/gems/facebook_oauth-0.3.0/lib/facebook_oauth/objects.rb:69:in `method_missing'
And it doesn't happen to all of my users which I don't quite understand the reason.
Thank you very much.
I'm trying to post picture on Facebook using gem facebook_oath.
And i getting 400 error. While using simple "message" posting everything goes right, but with picture everything goes wrong, and error 400 appears.
Do you have any clues? Thanks for any help.
client = FacebookOAuth::Client.new(:application_id => CONFIG[:facebook]['id'],
:application_secret => CONFIG[:facebook]['secret'],
:token => account.token)
opts = {:name => 'trololo',
:link => 'http://google.com.ua',
:picture => "http://www.google.com.ua/images/logos/ps_logo2.png",
:message => "trolololo",
}
r = client.user(user_id).feed(:create, opts)
I think the OAuth2 library is swallowing up API errors. Will investigate
I want to download all the photos of the loged user. How can I do that?
fb_client = FacebookOAuth::Client.new(:token => fb_access_token)
res = fb_client.me.feed(:create,
:message => text,
:picture => web_thumb_url)
This above method is giving an error "SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed" on execution.
Its not an issue, but can you please help?
I have also added this particular code in my implementation -
class Net::HTTP
alias_method :old_initialize, :initialize
def initialize(_args)
old_initialize(_args)
@ssl_context = OpenSSL::SSL::SSLContext.new
@ssl_context.verify_mode = OpenSSL::SSL::VERIFY_NONE
end
end
A gem is only as good as the documentation. In your case, sir, they are both impeccable.
I can't find your PayPal donate button or any other way to make a financial donation.
Do you have one hiding somewhere or a charity I can donate to?
Your hard work deserves a reward of some sort.
When I attempt:
access_token = client.authorize(:code => code)
I get the following error
warning: peer certificate won't be verified in this SSL session
OAuth2::HTTPError: Received HTTP 400 during request.
If I go to the authorise URL directly:
https://graph.facebook.com/oauth/access_token?client_id={etc}
I also get an error until I add:
&type=client_cred
and then I can get an auth code.
I wondered if my FaceBook application was created correctly.
And it wasn't. So I changed the call back address in my FaceBook app so that instead of finishing with a "?", it now finishes with a "/". And the authorisation now works!!
Also to get the access token for storing it, the user needs to get access_token.token
Do you want me write something up on creating a FaceBook application for the documentation? I would be happy to help.
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.