Unable to get the Publish_actions Android Facebook SDK 4.1.2

I am trying to get the publish_actions by using the following code

Step 1: to authorize the app

LoginManager.getInstance().logInWithReadPermissions(MyFaceBookActivity.this, (Collection)Arrays.asList("public_profile"));

step 2: once app get authorized, To get the publish_actions permission

LoginManager.getInstance().logInWithPublishPermissions(MyFaceBookActivity.this, Arrays.asList("publish_actions"));

it comes into LoginManager onCancel()

How do i get the publish_actions permission ?

Source: facebook

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.