How to access Page's Tabs with facebooker2

95 Views Asked by At

Does anyone know how to get list of Page's Tabs with facebooker2 please?

Michal

1

There are 1 best solutions below

0
Eyal Kedem On BEST ANSWER

This is actually pretty straight fwd to do with https://github.com/arsduo/koala

assuming you have the access token for the user, you can get all its pages / apps by getting the accounts connection:

graph = Koala::Facebook::GraphAPI.new(access_token)
pages = graph.get_connections("me", "accounts")

from there, you need to get the correct access token for the page, and then get the tabs using the tabs connection.