Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing edge_scope for Insights #78

Closed
rafalklo opened this issue Jun 9, 2015 · 0 comments
Closed

Missing edge_scope for Insights #78

rafalklo opened this issue Jun 9, 2015 · 0 comments

Comments

@rafalklo
Copy link

rafalklo commented Jun 9, 2015

Hi,

I was trying to make a call to a specific Insights metric and it is currently impossible since there is no edge_scope on the Insights Edge.

Could you add it, here is an updated insights module.

module FbGraph2
  class Edge
    module Insights
      def insights(params = {})
        insights = self.edge :insights, params.except(:metrics), edge_scope: params[:metrics]
        insights.collect! do |insight|
          Insight.new(insight[:id], insight).authenticate self.access_token
        end
      end
    end
  end
end
@nov nov closed this as completed in 6cee5aa Jul 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant