Thursday, 15 March 2012

facebook graph api - Rails Koala gem and friends count -



facebook graph api - Rails Koala gem and friends count -

can help me getting total_count of user friends?

u.facebook.get_connection("me", "friends",api_version:"v2.0")

this homecoming 0 because homecoming friends utilize app.

but in api 2.0 facebook give total_count field friends number

{ "data": [ ], "summary": { "total_count": 455 } }

how can koala gem?

u.facebook.get_connection("me", "friends/#{summary}",api_version:"v2.0")

this homecoming error.

answer if search this:

facebook.get_connection("me", "friends",api_version:"v2.0").raw_response["summary"]["total_count"]

for ease of others, can take this:

facebook.get_connection("me", "friends",api_version:"v2.0").raw_response["summary"]["total_count"]

ruby-on-rails facebook-graph-api koala

No comments:

Post a Comment