Skip to content

Instantly share code, notes, and snippets.

@bitgangsta
Created June 20, 2012 02:22
Show Gist options
  • Save bitgangsta/2957802 to your computer and use it in GitHub Desktop.
Save bitgangsta/2957802 to your computer and use it in GitHub Desktop.
Iterating over all schemas to update FB fluid property
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