7

This question has popped up a few times already. I want to retrieve the cover photo of the facebook timeline via the graph api.

The answer that I have seen mentioned everywhere is that it is not possible. However I came across a site http://www.timelinemoviemaker.com/ which does indeed retrieve your cover photo of the timeline. Is there any special permission granted to the site to access the cover photo? Or have they used some other method to retrieve the cover photo. Please let me know. Thanks in advance.

Maxim Dsouza
  • 1,507
  • 3
  • 19
  • 32

4 Answers4

8

Now you can access to the cover picture with the api.

https://graph.facebook.com/19292868552?fields=cover

nicowernli
  • 3,250
  • 22
  • 37
1

Retrieve the album called "Cover Photos". The timeline cover is at position 1 Visit Getting Facebooks' Cover Photo via PHP SDK & Graph API to retrieve album covers

Community
  • 1
  • 1
SoWhat
  • 5,564
  • 2
  • 28
  • 59
0

you can access the cover pic from the api using http get response GET/V2.5/me?fields=cover

GraphRequest request = GraphRequest.newMeRequest(
  accessToken,
  new GraphRequest.GraphJSONObjectCallback() {
    @Override
    public void onCompleted(JSONObject object, GraphResponse response) {
      // Insert your code here
    }
});

Bundle parameters = new Bundle();
parameters.putString("fields", "cover");
request.setParameters(parameters);
request.executeAsync();

but note that u should have the access token generated and registered app in facebook

Vikrant singh
  • 433
  • 1
  • 7
  • 25
-4

The easiest way to retrieve your cover photo from Facebook is to right click on the image, select copy image from the pop-up menu, then open up paint, (or whatever program you use for viewing your photos)and then CTL+V for paste.