Questions tagged [koala]

Koala is a Ruby gem for integrating Facebook connectivity into Ruby, and Ruby on Rails applications.

You can find out more about Koala here. It's a Facebook library for Ruby, supporting the Graph API (including the batch requests and photo uploads), the REST API, realtime updates, test users, and OAuth validation.

383 questions
22
votes
3 answers

Facebook token expiration and renewal, with Koala and omniauth-facebook

I'm writing a Rails app that uses omniauth-facebook to authenticate the user against FB (and to get a FB OAuth access token for the user). The app then uses Koala to make various calls to the FB Graph API, using that saved OAuth token. I update the…
Steve Bourne
  • 931
  • 8
  • 18
18
votes
2 answers

Renew Facebook access token with Koala

I'm using Koala gem on on Ruby on Rails application And I have the following code on the model I'm using to the the data through Koala: @graph = Koala::Facebook::GraphAPI.new(token_secret) friends = @graph.get_connections("me", "friends") where…
Mr_Nizzle
  • 6,324
  • 11
  • 52
  • 85
10
votes
3 answers

How to get Koala to play nicely with Omniauth?

I'm trying to get Koala to work with Omniauth. A User model logs in with Facebook using Omniauth and I want to use Koala as a client to pull the list of a user's friends that are using the app. I don't seem to be saving the tokens…
Simpleton
  • 5,889
  • 10
  • 48
  • 83
10
votes
1 answer

Rails Koala gem and friends count

Can somebody help me with getting total_count of user friends? u.facebook.get_connection("me", "friends",api_version:"v2.0") This return 0 because it return friends that also use my app. But in api 2.0 facebook give total_count field with friends…
Wordica
  • 1,996
  • 2
  • 26
  • 45
9
votes
2 answers

Facebook app invite from Ruby on Rails

Is there any way to post a Facebook application invite from Ruby on Rails, e.g. by deploying Koala? Looks to be impossible at the glance. Any workarounds other than simply posting to a wall?
Ain Tohvri
  • 2,918
  • 6
  • 31
  • 47
8
votes
1 answer

How to renew/prolong Facebook access token with Koala Gem from SERVER (!) with NO users interaction at all

My situation and what i have: Rails app (last version of Rails) Koala gem (last version) 1 (one) Facebook user (for example - it's me), and that is all, no more users (!) Page on a website without any FB login forms/similar stuff Now situation: I…
Jolibi
  • 81
  • 3
8
votes
1 answer

Facebook Graph API 2.0 creating Events

According to facebook, as of April 30th 2014 the create_event method is no longer available which I assume means no ability to publish events? https://developers.facebook.com/docs/apps/changelog create_event is no longer available. Is it still be…
holden
  • 13,081
  • 21
  • 89
  • 157
8
votes
2 answers

OAuthException: This authorization code has been used - Facebook

It seems like Facebook's new release on December 5th is causing some issues for me. Is anyone else getting this error? Koala::Facebook::APIError (OAuthException: This authorization code has been used.) I am able to oauth, but when I issue a call,…
user749798
  • 4,502
  • 10
  • 42
  • 76
8
votes
2 answers

Rails - Facebook with Omniauth and Koala: How to renew an expired token

I have an application where users can link their Facebook accounts. They can log in using their email, but they can link their Facebook account. In the view where I show the linked social networks (Facebook and others), I have something like…
Nobita
  • 22,569
  • 10
  • 55
  • 85
7
votes
3 answers

How to check the facebook application permission for specific user through graph api in rails?

I want to check whether the user has give publish_stream permission to my application or not. If not want to get publish_stream permission.
AliZubi
  • 91
  • 1
  • 5
7
votes
1 answer

How to catch Koala::Facebook::APIError OAuthException or user password reset

i was wondering how i can catch a koala oauth exception (for example user password reset). right now this is what i have / use so far: rescue_from Koala::Facebook::APIError do # redirect to fb auth dialog end but this catches all errors.. how i…
Oliver
  • 727
  • 10
  • 24
7
votes
1 answer

How do I allow a facebook page admin to select only the specific pages they want my app to manage(manage_pages)

I'm building a facebook app using Ruby on Rails and the Koala gem to build my own login flow. https://github.com/arsduo/koala https://developers.facebook.com/docs/facebook-login/manually-build-a-login-flow/ My question is pretty simply. Assuming…
Verty00
  • 706
  • 4
  • 15
7
votes
1 answer

Facebook publish post with link and big image

I use Koala to publish a post with link to a Facebook Group @graph = Koala::Facebook::API.new(access_token) @graph.put_connections(group_id, "feed", { :message => post_message, :picture => backdrop, …
sparkle
  • 6,527
  • 18
  • 58
  • 92
6
votes
2 answers

Find out if a user is friends with exactly one other user using Graph API

I'm trying to find out if User A is friends with User B but I don't want User A's entire list of friends. Is there a way, using Koala / the Graph API to simply find out if User A is friends with User B just using User B's Facebook ID?
Aaron
  • 10,807
  • 7
  • 58
  • 102
6
votes
1 answer

Making OmniAuth, Devise and Koala work together

I have an app in which I am implementing authentication using devise and omniauth. Ive got the logging in / out etc figured out, what i wanted to know was, what is the most efficient way to have a connection to the users graph api end point…
zsquare
  • 9,272
  • 5
  • 48
  • 84
1
2 3
25 26