Giter Site home page Giter Site logo

fb-lead-ad-intake's Introduction

Facebook Lead Ad Intake Service

Intake Service for capturing leads from Facebook Lead Ads

Get Permanent Page Access Token

Adapted from Facebook for Developers Access and Authentication

  • First you need to obtain a Short-Lived User Access Token
    • Go to Graph API Explorer
    • In Application, select an app used to obtain the access token
    • Click Get TokenGet User Token
    • Under Events, Groups & Pages, Check manage_pages
    • Click Get Access Token
    • Click i in the access token field
    • Click Open in Access Token Tool to see the token in Access Token Debugger
    • Check the properties in Access Token Debugger
    • Paste the access token copied in the last step above to the text field and click “Debug” button. Please check the followings:
      • App ID: the app id mentioned in the prerequisite section
      • User ID: you, a person who has admin right to the Facebook Page mentioned in the prerequisite section
      • Expires: a time stamp that would probably expires in an hour or two
      • Scope: should contain the “manage_page” permission
  • Exchange the Short-Lived User Access Token for a Long-Lived Access Token
    • Click Extend Access Token to get a long-lived token
    • Copy the long-lived token
    • Check the properties of this access token in Access Token Debugger. It should have a longer time such as 60 days, or Never next to Expires.
  • Get Permanent Page Access Token
    • Go to Graph API Explorer
    • Select your app in Application
    • Paste the long-lived access token you obtained in Step 2 into Access Token
    • Next to Access Token, choose the page you want an access token for. The access token appears as a new string.
    • Click i to see the properties of this access token
    • Click “Open in Access Token Tool” button again to open the “Access Token Debugger” tool to check the properties
    • Check the properties of this page access token in Access Token Debugger:
      • App ID: the app id mentioned in the prerequisite section
      • Profile ID: the page id mentioned in the prerequisite section
      • User ID: you, a person who has admin right to the Facebook Page mentioned in the prerequisite section
      • Expires: Never

Use this Permanent Page Access Token in the code where is says FACEBOOK_TOKEN_GOES_HERE

fb-lead-ad-intake's People

Contributors

jonpiehl avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.