Skip to content

Instantly share code, notes, and snippets.

@acidtib
Created October 10, 2012 17:49
Show Gist options
  • Save acidtib/3867188 to your computer and use it in GitHub Desktop.
Save acidtib/3867188 to your computer and use it in GitHub Desktop.
def recentpost
@graph = Koala::Facebook::API.new(facebook_auth.oauth_token)
@analytics = @graph.get_object(params[:id])
@recentfeed = @graph.get_connections(params[:id], "posts")
if client_signed_in?
@clients = Client.where(:clabel => current_client.companyname)
end
end
<div class="row">
<%= render 'frontend/ananav' %>
</div>
<div class="row">
<div class="span12">
<div class="widget">
<div class="widget-header">
<i class="icon-file"></i>
<h3>Content</h3>
</div> <!-- /widget-header -->
<div class="widget-content">
<% for feed in @recentfeed %>
<%=h feed['likes']['count']%> <br>
<% end %>
</div> <!-- /widget-content -->
</div>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment