arsduo / koala

A lightweight Facebook library supporting the Graph, Marketing, and Atlas APIs, realtime updates, test users, and OAuth.

Home Page:http://developers.facebook.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Friends returns empty array

m-anwr opened this issue · comments

Hello,

I am using the latest version of Koala (3.0.0)
When I use Koala::Facebook::API(access_token).get_object("me", fields: "email,friends,...)

I get "friends => {"data"=>[], "summary"=>{"total_count"=>312}}"
I get the right total_count but the data array is empty

I've tried to do:
Koala.config.api_version = "v2.6"
Koala.config.api_version = "v2.0"

But nothing works for me

Can anyone help please?

Thanks in advance

@Tootis make sure your access_token has user_friends permission granted, you can still get a list of Taggable Friends without that permission get_object("me/taggable_friends")

@Tootis Solved your problem?

Closing as old and stale.
Feel free to open a new issue if you still have troubles with the gem