25 lines
697 B
Text
25 lines
697 B
Text
-# Copyright (c) 2010, Diaspora Inc. This file is
|
|
-# licensed under the Affero General Public License version 3. See
|
|
-# the COPYRIGHT file.
|
|
|
|
|
|
%h2 Services
|
|
|
|
- if FACEBOOK
|
|
%h3 Facebook
|
|
%p
|
|
- if @logged_in
|
|
= connected_fb_as(@access_token)
|
|
|
|
%p
|
|
- @fb_friends = MiniFB.get(@access_token, 'me', :type => "friends")
|
|
- @fb_friends[:data].each do |friend|
|
|
= image_tag( "http://graph.facebook.com/#{friend[:id]}/picture" )
|
|
|
|
= link_to "Disconnect from Facebook", services_destroy_path
|
|
- else
|
|
= link_to "Connect to Facebook (DO NOT USE WITH A REAL ACCOUNT)", @fb_access_url
|
|
|
|
#content_bottom
|
|
.back
|
|
= link_to "⇧ home", root_path
|