Questions tagged [koala-gem]

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.

93 questions
2
votes
3 answers

Gem Koala Facebook API get_object request

I'm trying to get user's info via Gem Koala Facebook API with below code @graph = Koala::Facebook::API.new(auth_hash.credentials.token) profile = @graph.get_object("me") user.update( url: auth_hash.extra.raw_info.id, email:…
Victor Yee
  • 151
  • 1
  • 14
2
votes
0 answers

Rails - Facebook Open Graph Story not shown in timeline

I have a problem with posting a custom OpenGraph story to the Facebook Timeline. I am trying to post from an Rails Application via Koala-Gem: @graph = Koala::Facebook::API.new(self.facebook_user_access_token,…
Stone
  • 2,912
  • 1
  • 21
  • 18
2
votes
1 answer

Using Koala Facebook API to get information from app pages

How do I use the koala gem to get information from an app page? For example, if I want to get information about candy crush saga's liked pages, I type @graph.get_object(candycrushsaga+"/likes"). How can I get other features such as comments,…
tvishwa107
  • 301
  • 2
  • 14
2
votes
1 answer

Why is Facebook claiming that my facebook app 'is still calling Graph API v1.0' if I specified v2.2 version in koala?

We have recently received two alerts regarding our facebook app. Your app is still calling Graph API v1.0 which will be deprecated on April 30, 2015. You must upgrade this app to v2.0 or greater before that date. To help you experience the…
bmitan
  • 31
  • 4
2
votes
0 answers

fb_graph or koala for interacting with facebook graph API v2.0

What are the advantages or disadvantages of fb_graph versus koala when trying to interact with the facebook's graph API v2.0. My app is rails 3 and I use omniauth to authenticate a user with facebook, but I'm looking for a solution to post to a…
2
votes
1 answer

Posted Wall link doesn't get parsed by Facebook

I'm using Ruby on Rails ails with the Koala gem to post a link to the users wall. My Koala method looks like this: graph = Koala::Facebook::API.new(user.oauth_token) graph.put_wall_post('', { link: "http://myfqd.com" }); The link gets posted but…
Oliver
  • 801
  • 13
  • 26
2
votes
0 answers

Error "read would block OpenSSL::SSL::SSLError" when using Koala

"read would block OpenSSL::SSL::SSLError" I'm try to disable verification ssl with code Koala.http_service.http_options = { # Faraday options :ssl => { # see below for info on ca_path and ca_file #:ca_file => file, #:ca_path =>…
Alex808
  • 106
  • 1
  • 10
2
votes
0 answers

check if Facebook auth code expired rails

I'm trying to comply with the new Dec. 5th Facebook release, and store access tokens. I'm using the Koala gem in Rails for the Facebook API. I ge the following error if the user has logged out of Facebook, but not our app Koala::Facebook::APIError…
user749798
  • 5,210
  • 10
  • 51
  • 85
2
votes
1 answer

Search Facebook by first name with Koala

Before, Koala/facebook would let me do this: graph.search("Ted", {:type => "user"}) Now, it returns an empty array. It seems one can only search by uncommon or full names now. For example: graph.search("Ted Turner", {:type => "user"}) ...returns…
bevanb
  • 8,201
  • 10
  • 53
  • 90
1
vote
1 answer

Am I posting to Facebook correctly?

Anyone use the Koala gem to post on a Facebook wall before? I am able to post fine (with the picture displayed), but can't seem to have the "share" link on the actual wall post. "Like" and "Comment" appear though. I have the following: …
Christian Fazzini
  • 19,613
  • 21
  • 110
  • 215
1
vote
0 answers

rails facebook conditional not working

I am trying to do what this guy did. However I am not able to see the option to post to facebook even after the user has selected yes. Here is the method in my user model that is supposed to have the koala gem check and see if the user has selected…
1
vote
1 answer

Inviting a friend to your app using Facebook API

I have a web app built with a Rails backend and I want users to be able to Invite their friends to use the web app. I've been using the Koala gem to interact with Graph API. This is what my code looks like: @graph =…
sump
  • 506
  • 2
  • 15
1
vote
0 answers

koala: how to get shares from Facebook Graph API

I'm trying to get the count of shares from a Facebook page, but I can't seem to get the result out of the hash. Here's what I have: y_response = @graph.get_connection('some_fb_page','posts', {fields: ['message', 'id',…
grooble
  • 617
  • 1
  • 8
  • 27
1
vote
1 answer

Koala ruby gem get_object syntax for nested properties in fields argument

Facebook API supports choosing nested object's selected fields in the response in following manner: GET graph.facebook.com /me? fields=albums{name, photos{name, picture}} Reference:…
Jignesh Gohel
  • 6,236
  • 6
  • 53
  • 89
1
vote
0 answers

Koala gem get_object returns GraphMethodException

I'm using the Koala gem to get metrics (likes, comments, and shares) on Facebook posts. I literally have not touched the Koala code in months, yet is suddenly stopped working. I'm able to get likes and comments, but not shares. I checked the docs…
Daniel Bonnell
  • 4,817
  • 9
  • 48
  • 88