Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.