Giter Site home page Giter Site logo

facebook_oauth's Introduction

Hi there ๐Ÿ‘‹

facebook_oauth's People

Contributors

moomerman avatar

Stargazers

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

Watchers

 avatar  avatar

facebook_oauth's Issues

facebook_oauth depends on mime-types >= 1.16

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.

OAuth2 : Error

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:inrequest'
/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.

Method picture for posting on the wall

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)

"SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed" error for feed creation

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

Can't find the PayPal donate button

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.

Setting up the FaceBook app correctly.

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.

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.