You must specify the class name (Activity) that calls the Facebook API . And, as mentioned in the comments, and I also tried the same thing, you should mention the name Activity, which uses the Facebook API, and not the main activity of your application .
source
share