The package name and class name of the facebook application

Just a little confusion I want to ask by creating a facebook app to implement the sharing feature in my Android app enter image description here

The unique identifier for the application used to open your application.

  • Package Name: Is this a unique identifier that I wrote while creating a new facebook application on my developer console? Or is it the name of the package of my Android application?

The main activity you want to launch Facebook

  1. Class name: I added a facebook share button in each fragment (class), so which class is the main activity that he wants to run on facebook? Or is this the main view of my Android app?
+7
android facebook facebook-graph-api facebook-android-sdk socialshare
source share
3 answers

See this screenshot from the documentation to get started on Facebook.

+7
source share

add the Package name your application in the Package name field add Activity Name in the Class name field. For example, you have com.example.facebook as the name of your package. You have a lot of Activity in this package, but you want to use the Facebook code in FbExampleActivity , then FbExampleActivity is your class name.

+4
source share

I have not tried it yet, but it seems that these fields are for deep reference only. This is useful when you want Facebook to show ads related to your application. In case users click on an ad:

  • if your application was installed on a user device (depending on the name of the package that you specified here), it will send the intention of your activity (base to the class name that you specified here). This activity will be directed to intent.

  • Otherwise, it will go to your application in google play (again, specify the package name that you define here)

deep link: https://developers.facebook.com/docs/app-ads/deep-linking

Android app links: https://developers.facebook.com/docs/applinks/android

In conclusion, if you are not going to integrate application links, simply post your package and core business here.

0
source share

All Articles