misza222
misza222

Reputation: 393

How to access Page's Tabs with facebooker2

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

Michal

Upvotes: 0

Views: 92

Answers (1)

Eyal Kedem
Eyal Kedem

Reputation: 206

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.

Upvotes: 1

Related Questions