I am using facebook sdk 3.14(latest updated sdk) and created application for android platform like other old applications which i have added same options and everything.
i want to use share photo feature for that I am using below code to add publish_actions permission. but permission is not getting updated or granted.
** I have checked with other old application which i have created last month which is working fine with same code photo sharing and all is working , permissions also getting add.
But application which i have created today.with that app id I am not able to add permission for publish.
if (session.isOpened()) {
// We need to get new permissions, then complete the action when
// we get called back.
Session.NewPermissionsRequest permission = new NewPermissionsRequest(
this, PERMISSION);
permission.setCallback(new StatusCallback() {
@Override
public void call(Session session, SessionState state,
Exception exception) {
//session.getPermissions() //here m not getting publish_permission in list
Log.e("", "");
}
});
session.requestNewPublishPermissions(permission);
return;
}
i have also tried with samples which is provided with facebook sdk. onActivity result and all are as per facebook sample given in sdk .
any help? ** try to create new facebook application and use that app id.