How to Generate Android Key Hashes for Facebook Ads

Introduction

When integrating Facebook Ads with your Android app, you’ll need to provide Android Key Hashes to Facebook to authenticate your app. This document explains how to find the necessary details and where to generate your key hashes.

Reference Guide

Follow the official guide from Facebook Developers to generate your Android Key Hashes: Facebook Developer Docs – Android Key Hashes

Key Details Required

Package Name

  1. You can find this in your app’s plugin settings or in the Google Play Console.
  2. Navigate to your app’s Dashboard > App Info.
  3. Format example: com.example.xyz

Class Name

  1. Required Class Name for Facebook Ads integration: MainActivity

Troubleshooting and FAQs

Q: My key hash doesn’t work—what should I check?
A: Make sure you’re using the correct key for the environment (debug or release).

Q: Can I use multiple key hashes for different environments?
A: Yes, Facebook allows multiple hashes.

Was this article helpful?

Related Articles

To speak to our Agency consultant, fill in the form found at our Contact Page.

  • Get Started

    Enter your name and email address to get started with your project...

  • This field is for validation purposes and should be left unchanged.

Not recently active