Created
November 28, 2011 19:57
-
-
Save notch8-old/1401774 to your computer and use it in GitHub Desktop.
Facebook add app to page
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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