Skip to content

A simple Flask application to track profile views by logging requests to an image served by the app. The image is posted on a Facebook profile to log profile views when the image is requested.

Notifications You must be signed in to change notification settings

z1nc0r3/facebook-profile-view-tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Facebook Tracking App

A simple Flask application to track profile views by logging requests to an image served by the app. The image is posted on a Facebook profile to log profile views when the image is requested. This effectively tracks the user-agent of the request, but the IP address remains the same because the request is handled by Facebook itself.

Simply saying, we have an image hosted on a server and we post the URL of that image on Facebook as a post and it will show a preview in the post itself. So each time Facebook tries to fetch the image from the server it'll make a request to our server. And we catch the request and log its IP and User-Agent.

Features

  • Logs IP address, User-Agent, Referrer, HTTP method, and query parameters.
  • Serves as a tracking image and logs each request.

Requirements

  • Python 3.x
  • Flask
  • Gunicorn

How to use

  1. Deploy this Flask app on any server
  2. Copy the public URL route and post it on Facebook
  3. Check the log files for details

About

A simple Flask application to track profile views by logging requests to an image served by the app. The image is posted on a Facebook profile to log profile views when the image is requested.

Topics

Resources

Stars

Watchers

Forks

Languages