Skip to content

Instantly share code, notes, and snippets.

@ArunGupta25
Created June 11, 2012 21:08
Show Gist options
  • Save ArunGupta25/2912715 to your computer and use it in GitHub Desktop.
Save ArunGupta25/2912715 to your computer and use it in GitHub Desktop.
def tagged
if current_user
@fb_user = FbGraph::User.me(current_user.fb_token)
@photos_of_you = @fb_user.photos({"limit" => "0"})
@count = @photos_of_you.count
end
render :layout => false
end
<% if current_user %>
<% @photos_of_you.each do |photo| %>
<input type="image" id='<%= photo.identifier %>' src='<%= photo.raw_attributes["picture"] %>' value="Edit photo" onclick="return launchEditor('<%= photo.identifier %>', '<%= photo.raw_attributes["source"] %>');"/>
<% end %>
<% else %>
<h1>You are not logged in!</h1>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment