0

I am using facebook SDK 4.14.1. After clicking on like button, it redirects me to Like page. It says "via undefined" instead of my application name. What I did wrong?

enter image description here

hhs
  • 716
  • 1
  • 6
  • 22

2 Answers2

1

Another solution is to add Facebook Application Name in the manifest

<meta-data android:name="com.facebook.sdk.ApplicationName"
            android:value="@string/app_name" />
ronanglo
  • 43
  • 7
0

Find the solution. Should call:

FacebookSdk.setApplicationId(getString(R.string.facebook_app_id));
FacebookSdk.setApplicationName("App Name");
hhs
  • 716
  • 1
  • 6
  • 22