trying to get friends from fb
This commit is contained in:
parent
5857838a0a
commit
f0999628ae
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue