Skip to content

Instantly share code, notes, and snippets.

@notch8-old
Created November 28, 2011 19:57
Show Gist options
  • Select an option

  • Save notch8-old/1401774 to your computer and use it in GitHub Desktop.

Select an option

Save notch8-old/1401774 to your computer and use it in GitHub Desktop.
Facebook add app to page
# Get the pages access token
accounts = MiniFB.get(u.facebook_access_token, facebook_user["id"], :type => "accounts")
account = accounts.data.first
# Add the app to to the page using the access token
MiniFB.post(account.access_token, "#{account.id}/tabs", :app_id => "189977524185")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment