Created
June 20, 2012 02:22
-
-
Save bitgangsta/2957802 to your computer and use it in GitHub Desktop.
Iterating over all schemas to update FB fluid property
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
SchemaHelper.with_schema(:clients) do | |
begin | |
app_id = SchoolConfiguration.facebook_app_id | |
app_secret = SchoolConfiguration.facebook_secret | |
auther = Mogli::Authenticator.new(app_id, app_secret, "") | |
token = auther.get_access_token_for_application | |
client = Mogli::Client.new(token) | |
client.post(app_id, nil, :canvas_fluid_width => true, :access_token => token) | |
rescue | |
puts "Ignoring an exception..." | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment