Skip to content

Instantly share code, notes, and snippets.

@joesavak
Created May 20, 2011 20:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joesavak/983674 to your computer and use it in GitHub Desktop.
Save joesavak/983674 to your computer and use it in GitHub Desktop.
fbconnection
<div id="fb-root"></div>
<%= javascript_include_tag 'fbconnect' %>
Auto-post on Facebook
<span id="fbusing" style="display:none;">using account
<span id="fbuser">
<a href="" onclick="window.open('http://www.facebook.com/settings/?tab=privacy','_blank');return false;" ><%= @user.fbusername%></a>
</span>
</span>
<span id ="connectwithfb">
<a href="" id="fbconnect"><%= image_tag("facebook-connect-button.png",:border=>0,:height=>18,:width=>120)%></a>
</span>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment