Skip to content

Latest commit

 

History

History
 
 

parse

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Graph API Webhooks Parse Sample

This is a sample client for Facebook's Graph API Webhooks and Instagram's Subscriptions API, powered by Parse Cloud Code.

Setup

Parse

  1. Download the files in this directory.
  2. Create a new Parse application.
  3. Set your Parse application's subdomain name.
  4. Install the Parse command line tool.
  5. Run the parse new command from the root directory of this repository to initialize the cloud code with your Parse app keys (enter cloud for the directory name to use this sample code).
  6. Navigate to the /cloud directory and run the parse deploy command to deploy the Cloud Code.
  7. Test your deployment with curl https://<your-subdomain>.parseapp.com - you should see "It works!".

Facebook

  1. Create a new Facebook application.
  2. Set up your Facebook application's Graph API Webhooks subscription using https://<your-subdomain>.parseapp.com/facebook as the callback URL and token as the verify_token.

Instagram

  1. Register an Instagram API client.
  2. Set up your client's subscription using your https://<your-subdomain>.parseapp.com/instagram as the callback URL and token as the verify_token.

Read more about using Parse objects to save your Facebook data in the Parse JavaScript Guide.