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 newcommand from the root directory of this repository to initialize the cloud code with your Parse app keys (entercloudfor the directory name to use this sample code). - Navigate to the
/clouddirectory and run theparse deploycommand 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/facebookas the callback URL andtokenas the verify_token.
- Register an Instagram API client.
- Set up your client's subscription using your
https://<your-subdomain>.parseapp.com/instagramas the callback URL andtokenas the verify_token.
Read more about using Parse objects to save your Facebook data in the Parse JavaScript Guide.