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
- You can find this in your app’s plugin settings or in the Google Play Console.
- Navigate to your app’s Dashboard > App Info.
- Format example: com.example.xyz
Class Name
- 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.