Fb friends are displayed only once
This commit is contained in:
parent
85f71aa4aa
commit
63cb7dcbdd
1 changed files with 5 additions and 5 deletions
|
|
@ -6,11 +6,11 @@
|
||||||
= owner_image_link
|
= owner_image_link
|
||||||
- for friend in @friends
|
- for friend in @friends
|
||||||
= person_image_link(friend)
|
= person_image_link(friend)
|
||||||
- if @logged_in && (@aspect == :public)
|
- if @logged_in && (@aspect == :public)
|
||||||
%h3 Facebook Friends
|
%h3 Facebook Friends
|
||||||
- @fb_friends = MiniFB.get(@access_token, 'me', :type => "friends")
|
- @fb_friends = MiniFB.get(@access_token, 'me', :type => "friends")
|
||||||
- @fb_friends[:data].each do |friend|
|
- @fb_friends[:data].each do |friend|
|
||||||
= image_tag( "http://graph.facebook.com/#{friend[:id]}/picture" )
|
= image_tag( "http://graph.facebook.com/#{friend[:id]}/picture" )
|
||||||
-unless (@aspect == :all) || (@aspect == :public)
|
-unless (@aspect == :all) || (@aspect == :public)
|
||||||
= link_to (image_tag('add_friend_button.png', :height => "50px", :width => "50px")), "#add_request_pane", :id => 'add_request_button'
|
= link_to (image_tag('add_friend_button.png', :height => "50px", :width => "50px")), "#add_request_pane", :id => 'add_request_button'
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue