diff options
author | Allan Wang <me@allanwang.ca> | 2017-05-30 01:03:01 -0700 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2017-05-30 01:03:01 -0700 |
commit | 4c44dbc9933bd726c1da0bf326102835c4974d6b (patch) | |
tree | 18be2954a53c292eef132f9a3dc630c4071c7a9b /app/src/main/kotlin/com/pitchedapps/frost/FbActivity.kt | |
parent | 461425eb6054f18cea1990a4117fe8c78e888ddf (diff) | |
download | frost-4c44dbc9933bd726c1da0bf326102835c4974d6b.tar.gz frost-4c44dbc9933bd726c1da0bf326102835c4974d6b.tar.bz2 frost-4c44dbc9933bd726c1da0bf326102835c4974d6b.zip |
create retrofacebook and token retrieval
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/FbActivity.kt')
-rw-r--r-- | app/src/main/kotlin/com/pitchedapps/frost/FbActivity.kt | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/FbActivity.kt b/app/src/main/kotlin/com/pitchedapps/frost/FbActivity.kt new file mode 100644 index 00000000..0132a4db --- /dev/null +++ b/app/src/main/kotlin/com/pitchedapps/frost/FbActivity.kt @@ -0,0 +1,21 @@ +package com.pitchedapps.frost + +import android.os.Bundle +import android.support.annotation.CallSuper +import android.support.v7.app.AppCompatActivity +import com.facebook.AccessToken +import com.pitchedapps.frost.utils.L + +/** + * Created by Allan Wang on 2017-05-29. + */ +open class FbActivity : AppCompatActivity() { + var accessToken: AccessToken? = null + + @CallSuper + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + accessToken = AccessToken.getCurrentAccessToken() + L.e("Access ${accessToken?.token}") + } +}
\ No newline at end of file |