3
嗨我使用Koala gem和图API获取Facebook信息。无法使用考拉为facebook使用考拉的饲料4
下面是示例实现
def facebook_profile
a_token = current_user.facebook_oauth_setting.access_token
@graph = Koala::Facebook::API.new(a_token)
@picture = @graph.get_picture("me")
@feed = @graph.get_connection('me', 'posts', {fields: ['id', 'message']})
end
,当我尝试这样做我得到以下结果
{"name"=>"Firstname Lastname", "id"=>"1053124034660975"}
,但没有得到任何饲料或交。
我提到以下链接
https://github.com/arsduo/koala/wiki/Graph-API#getting-public-data
,但得到了同样的问题。
也检查了Facebook上的权限,但得到相同的问题。
那么我怎样才能从Facebook获取提要或是否有任何我缺少的东西。