Created
November 25, 2013 10:04
-
-
Save qoelet/7639116 to your computer and use it in GitHub Desktop.
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
import Data.Configurator | |
import qualified Data.Configurator as C | |
main :: IO () | |
main = do | |
-- other code | |
cfg <- C.load [C.Required "../.settings.cfg"] | |
app_id <- C.lookup cfg "facebook.id" :: IO (Maybe String) | |
app_secret <- C.lookup cfg "facebook.secret" :: IO (Maybe String) | |
let base_url = "https://graph.facebook.com/oauth/access_token?" | |
auth_url = authUrl base_url app_id app_secret | |
getToken <- curlGetString (auth_url) [] | |
-- more code |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment