I'd like to know if there is a simple way of retrieving the Cover photo from a user in my application, via the facebook php sdk.
Thanks in advance.
I'd like to know if there is a simple way of retrieving the Cover photo from a user in my application, via the facebook php sdk.
Thanks in advance.
I use username instead of id and it works:
Parse the JSON accordingly.
Facebook seems to have added the Cover field to User Object recently
https://graph.facebook.com/facebookuserid?fields=cover will give you the user cover pic Details
Facebook Doc Link : http://developers.facebook.com/docs/reference/api/user/
Facebook has a really poor and outdated documentation... At the moment there isn't a proper way to do this via Graph API, but with FQL it is possible.
The field pic_cover isn't documented but available. The response should look like this:
it tries to automatically recover from the image through php
The latest versions of Graph API (2.4 is current at the time of writing) support 'picture' field that returns user's profile picture. It's worth checking.