@@ -0,0 +1,1156 @@
+package awesomefb;%0A%0Aimport com.mongodb.BasicDBObject;%0Aimport org.bson.types.ObjectId;%0Aimport org.springframework.social.facebook.api.Reference;%0A%0A/**%0A * Created by earl on 5/25/2015.%0A */%0Apublic class ExtractedUser %7B%0A    private String mUserId;%0A    private String mFacebookId;%0A    private String mName;%0A%0A    /**%0A     * Saves user data into users collection,%0A     * returns DBObject with newly inserted id and some basic info (FB ID, name)%0A     * @param reference%0A     */%0A    public ExtractedUser(Reference reference) %7B%0A        mFacebookId = reference.getId();%0A        mName = reference.getName();%0A        DatabaseManager databaseManager = DatabaseManager.getInstance();%0A%0A        BasicDBObject userObject = new BasicDBObject(%22fb_id%22, mFacebookId).append(%22name%22, mName);%0A        mUserId = new ObjectId().toString();%0A        userObject.put(%22_id%22, mUserId);%0A%0A        System.out.println(%22%5BawesomeFb%5D Inserting basic user data %22 + mFacebookId);%0A        databaseManager.insertUser(this);%0A    %7D%0A%0A    public BasicDBObject toDBObject() %7B%0A        return new BasicDBObject(%22user_id%22, mUserId)%0A                .append(%22fb_id%22, mFacebookId).append(%22name%22, mName);%0A    %7D%0A%7D%0A

Add ExtractedUser class