Does anyone know where in the Auth Hash the user_likes are stored?
I’ve tried different combos:
auth.extra.raw_info.user_likes
auth.extra.raw_info.likes
I’ve got the permission, I just don’t know how to get to the user_likes array.
After some time (edit)
Alternatively I could do something like this using the HTTParty gem:
url = "https://graph.facebook.com/#{auth.uid}/likes&access_token=#{auth.credentials.token}"
@likes = HTTParty.get(url)
But I really want to know if its possible through the omniauth authentication process…
The omniauth-facebook gem uses the /me call to fill the raw_info hash. Per the facebook docs http://developers.facebook.com/docs/reference/api/user/, likes are not included in the user object but are a connection that can be accessed by calling https://graph.facebook.com/me/likes.