Skip to content
jbavari edited this page Jun 25, 2013 · 2 revisions

Insights

# no metrics
page.insights(:access_token => ACCESS_TOKEN)

# with metrics
page.insights(:access_token => ACCESS_TOKEN, :metrics => 'page_like_adds')

# with metrics & period
page.insights(:access_token => ACCESS_TOKEN, :metrics => 'page_like_adds', :period => 'day')

# Ease of use - only relevant information returned 
insight = page.connection "insights/page_views_login_unique/day"
insight = page.connection "insights/page_views_login_unique", :since => Date.today - 7, :until => Date.today, :period => "day"
Clone this wiki locally