skip to Main Content

I need to update Facebook graph API to use the latest one i.e. v2.7. In previous implementation I don’t see any version number implemented in code. Could you please help me how do we implement latest version for facebook graph API.

Thank You
Harish Singh

2

Answers


  1. API Upgrade Tool
    : https://developers.facebook.com/tools/api_versioning/

    …or just add the version tag in your API calls/paths, which is explained in the changelog: https://developers.facebook.com/docs/apps/changelog

    Example:

    https://graph.facebook.com/v2.7/me?access_token=xxx
    
    Login or Signup to reply.
  2. For facebook version update, here is the latest guide I found (to facebook lib version 2.8): https://developers.facebook.com/docs/apps/changelog

    1. You need go to the facebook “API updated tool” (an online page), and upgrade the API version you facebook app use. Facebook will track whether you call need be updated using the newest API

    2. May be you also need to update the sdk for your script: (for example for the python in ubuntu)

    sudo pip install -U facebook

    The above cmd may not work because the pip repository not have a new version yet, then you need to download the source code of the new API in the git page, unzip the code, in the folder where you unzip the code, run the install cmd yourself :

    sudo python setup.py install
    

    see latest facebook python API guide page https://github.com/facebook/facebook-python-ads-sdk

    Zhihong

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search