A sample app for enabling a user to interact with a React app and share some part of the state on social media platforms. The URL shared and resulting content when loaded will be relevant to the sharing user's activity.
Deployed to Heroku at https://social-sharing-boilerplate.herokuapp.com/
export WEBPACK_BUILD_MODE=(development|production)
export PORT=...port-for-express...
export APP_HOST=...URL-for-your-app...
export FB_APP_ID=...provided-by-fb-under-app-settings...
Generate a cert and an nginx config:
./bin/local-deploy/localhost-config
- create a facebook app.
- basic setup ok for functionality in this app
- place the app ID in the environment variable
FB_APP_ID
- in the Basic Settings, provide the URLs for the privacy-policy and terms-of-service
- these must already be accessible publicly for the form to save
- to App Domains, add:
- the production domain this app will be served under
- localhost (or whatever your local URL is for serving the app in development)