Skip to content
This repository

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"
Something went wrong with that request. Please try again.