trying to get friends from fb

This commit is contained in:
ilya 2010-09-23 14:43:08 -07:00
parent 5857838a0a
commit f0999628ae

View file

@ -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