From f0999628ae651309c2d4b9a6b0b895fd7e7e9c09 Mon Sep 17 00:00:00 2001 From: ilya Date: Thu, 23 Sep 2010 14:43:08 -0700 Subject: [PATCH] trying to get friends from fb --- app/views/users/edit.html.haml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/views/users/edit.html.haml b/app/views/users/edit.html.haml index fb9de28be..bbd84ec92 100644 --- a/app/views/users/edit.html.haml +++ b/app/views/users/edit.html.haml @@ -75,10 +75,12 @@ - @response_hash = MiniFB.get(@access_token, 'me') = @response_hash[:name] + - @fb_friends = MiniFB.get(@access_token, 'me', :type => "friends") + = @fb_friends.inspect + - form_tag "/services/fb_post" do = text_area_tag "message" = submit_tag "send it off" - = link_to "Disconnect from Facebook", services_destroy_path - else = link_to "Connect to Facebook", @fb_access_url