Access Data From Facebook Using Facebook Graph API and Python

Access Data From Facebook Using Facebook Graph API and Python

The Graph API is the primary way to get data into and out of the Facebook platform. It's an HTTP-based API that apps can use to programmatically query data, post new stories, manage ads, upload photos, and perform a wide variety of other tasks.

What is Facebook Graph API?

The Graph API is the primary way to get data into and out of the Facebook platform. It’s an HTTP-based API that apps can use to programmatically query data, post new stories, manage ads, upload photos, and perform a wide variety of other tasks.

Let’s get started

  1. Open your browser and search for Graph API
  2. Then select the first link which is shown.

Access Data From Facebook Using Facebook Graph API and Python

This will take you to this page and then select the tools option and then select graph API explorer. It will open the graph API explorer.

You have to login with your Facebook id to get started. So, first login and then start the process.

Access Data From Facebook Using Facebook Graph API and Python

As you can see there is Access token option. This token is like your password which shows who are you so, keep it safe.

The above link you can see i.e. me?fields = id, name where memeans you, fields means which fields you like to see here we can see *id and name *of the Facebook account we have signed it with.

When you click on Generate Access token button the submit *gets enabled. When you click on the *submit button you can see the fields you have entered. In this case it is id and name.

Access Data From Facebook Using Facebook Graph API and Python

At the bottom right there is an option called Add permission. Select the User data Permission option and then select the fields that you want to access such as birthday, gender, hometown etc.

Access Data From Facebook Using Facebook Graph API and Python

In this case I have selected birthday and gender option. First you have to enable it from Add permission and then on the Left side you can search and add the fields you want to access and then generate access token and click on submit to see the result.

Let’s see how we can request the Facebook server using python. So that we can access our data.

technology facebook graph api python

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

Introduction To Facebook Social Graph API with Python

In this video we are going to talk about Facebook Social Graph API and how you can use Facebook Social Graph API Explorer. also we are going to use Python programming language for retrieving some data from Facebook. Introduction To Facebook Social Graph API with Python

Top 10 API Security Threats Every API Team Should Know

Learn what are the most important API security threats engineering leaders should be aware of and steps you can take to prevent them

What Are Good Traits That Make Great API Product Managers

What is API product management and what can you be doing to be a better API product manager — get aligned with SaaS and enterprise software requirements. This guide lays out what is API product management and some of the things you should be doing to be a good product manager.

Consume Web API Post method in ASP NET MVC | Calling Web API | Rest API Bangla Tutorial

LIKE | COMMENT | SHARE | SUBSCRIBE In this tutorial, I will discussed about how to consume Web API Get method and display records in the ASP.NET View. Here, ...

Consume Web API Get method in ASP NET MVC | Calling Web API | Rest API Bangla Tutorial

LIKE | COMMENT | SHARE | SUBSCRIBE In this tutorial, I will discussed about How to Consume Web API Get method in ASP NET MVC. Blog : http://aspdotnetexplorer...