 <p>I found a workaround for not being able to use the preset_size attribute in xml. I am doing it through code now - </p> <p>profilePictureView.setPresetSize(ProfilePictureView.LARGE);</p> <p>As for running the samples,</p> <p>I downloaded the github repository facebook-sdk-master and then imported it into my project. Then I changed the application name of the samples and set their app_id to my app_id. Now I am able to run them.</p>