Created
June 11, 2012 21:08
-
-
Save ArunGupta25/2912715 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% 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