Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to call publishInstall() in facebook graph api android

I want to call

publishInstall(); 

In my application. When application is starting, I am using facebook graph api.

like image 530
Yogesh Tatwal Avatar asked Jul 16 '13 06:07

Yogesh Tatwal


People also ask

How can I get Facebook token in Android?

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.

How do I get my Facebook Graph API user ID?

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.


1 Answers

I have added facebook.jar in my project and just call above method from Setting.java

Settings.publishInstall(getApplicationContext(), "FACEBOOK_APP_ID");
like image 95
Yogesh Tatwal Avatar answered Nov 09 '22 13:11

Yogesh Tatwal