Account Kit for Web (Golang), see the demo site.
copy the .env.example
to .env
TEST_FACEBOOK_APP_ID=xxxxxxxxx
TEST_FACEBOOK_SECRET=xxxxxxxxx
TEST_FACEBOOK_VERSION=v1.1
change the app_id
and secret value
.
Please make sure the go version in v1.11 using go module.
$ go run main.go
Click on the Heroku button to easily deploy your app:
Or alternatively you can follow the manual steps:
Clone this repository:
$ git clone https://github.com/go-training/facebook-account-kit.git
Set the buildpack for your application
$ heroku config:add BUILDPACK_URL=https://github.com/go-training/facebook-account-kit.git
Add Heroku git remote:
$ heroku git:remote -a your-application
Deploy it!
$ git push heroku master
View the logs. For more information, see View logs.
$ heroku logs --app {Heroku app name} --tail
Add Config Vars in dashboard.
You can refer the facebook developer dashboard.