This is a sample client for Facebook's Graph API Webhooks and Instagram's Subscriptions API, powered by Parse Cloud Code.
- Download the files in this directory.
- Create a new Parse application.
- Set your Parse application's subdomain name.
- Install the Parse command line tool.
- Run the
parse new
command from the root directory of this repository to initialize the cloud code with your Parse app keys (entercloud
for the directory name to use this sample code). - Navigate to the
/cloud
directory and run theparse deploy
command to deploy the Cloud Code. - Test your deployment with
curl https://<your-subdomain>.parseapp.com
- you should see "It works!".
- Create a new Facebook application.
- Set up your Facebook application's Graph API Webhooks subscription using
https://<your-subdomain>.parseapp.com/facebook
as the callback URL andtoken
as the verify_token.
- Register an Instagram API client.
- Set up your client's subscription using your
https://<your-subdomain>.parseapp.com/instagram
as the callback URL andtoken
as the verify_token.
Read more about using Parse objects to save your Facebook data in the Parse JavaScript Guide.