I want to call
publishInstall();
In my application. When application is starting, I am using facebook graph api.
To get the Client Access Token for an app, do the following: Sign into your developer account. On the Apps page, select an app to open the dashboard for that app. On the Dashboard, navigate to Settings > Advanced > Security > Client token.
The simplest way to get a copy of the User Profile object is to access the /me endpoint: FB. api('/me', function(response) { }); This will this will return the users name and an ID by default.
I have added facebook.jar in my project and just call above method from Setting.java
Settings.publishInstall(getApplicationContext(), "FACEBOOK_APP_ID");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With