maxime1992
maxime1992

Reputation: 23813

Android - Facebook SDK - Mail permission

i'd like to add mail permission to my App.

I've seen a lot of post but no one really match to my problem ...

What do i need to do for having mail permission ? Thanks in advance :)

Upvotes: 0

Views: 68

Answers (1)

duggu
duggu

Reputation: 38439

try below code:-

Session session = Session.getActiveSession();
if (session == null) {
    session = new Session(this);
    Session.setActiveSession(session);
}
if (!session.isOpened() && !session.isClosed())) {
    session.openForRead(new Session.OpenRequest(this)
      .setPermissions(Arrays.asList("basic_info","email"))
      .setCallback(statusCallback));
}

see below link

Facebook SDK 3.7 for Android request email permission

Upvotes: 1

Related Questions