use of com.facebook.Session in project Klyph by jonathangerbaud.
the class PostActivity method handlePublishPost.
private void handlePublishPost() {
pendingAnnounce = false;
Session session = Session.getActiveSession();
List<String> permissions = session.getPermissions();
if (!permissions.containsAll(PERMISSIONS)) {
pendingAnnounce = true;
requestPublishPermissions(this, PERMISSIONS);
return;
}
numTry = 0;
publishPost();
}
use of com.facebook.Session in project Klyph by jonathangerbaud.
the class EventFragment method handleResponseClick.
private void handleResponseClick(int request) {
pendingAnnounce = false;
Session session = Session.getActiveSession();
List<String> permissions = session.getPermissions();
if (!permissions.containsAll(PERMISSIONS)) {
pendingAnnounce = true;
pendingRequest = request;
requestPublishPermissions(session);
return;
}
sendRequest(request);
}
use of com.facebook.Session in project Klyph by jonathangerbaud.
the class Notifications method hasPermissions.
private boolean hasPermissions() {
Session session = Session.getActiveSession();
List<String> permissions = session.getPermissions();
return permissions.containsAll(PERMISSIONS);
}
use of com.facebook.Session in project Klyph by jonathangerbaud.
the class ImageFragment method handleReplyAction.
private void handleReplyAction(final Comment comment) {
pendingReplyComment = false;
pendingCommentReply = comment;
Session session = Session.getActiveSession();
List<String> permissions = session.getPermissions();
if (!permissions.containsAll(PERMISSIONS)) {
pendingReplyComment = true;
requestPublishPermissions(session);
return;
}
replyToComment(comment);
}
use of com.facebook.Session in project Klyph by jonathangerbaud.
the class StreamFragment method handlePostComment.
private void handlePostComment() {
pendingAnnounce = false;
Session session = Session.getActiveSession();
List<String> permissions = session.getPermissions();
if (!permissions.containsAll(PERMISSIONS)) {
pendingAnnounce = true;
requestPublishPermissions(session);
return;
}
postComment();
}
Aggregations