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 think the easiest is to use the graph api:
and parse the returned JSON.
This is how I extracted my cover pic using Jackson and the Graph API.
I have used https://graph.facebook.com/facebookuserid?fields=cover link but it did not work. When I search Facebook SDK documentation, I see the answer that works. I hope this will be helpful for you.
Result is a type of a Dictionary. You can see the link of user's cover photo under "cover" tag and its "source" tag also.
I use: http://graph.facebook.com/{user_id or page_id}?fields=cover
Return on browser:
How can I get field 'source' to a php varible?
Sr, I can't reply so i post here. :(
I think it is better to ask type of album then name.
Here's the link to fetch facebook cover pic..
http://www.77-thoughts.com/fetch-facebook-cover-pic-using-facebook-graph-api/
You can demo it here
http://77-thoughts.com/demo/fetch_facebook_cover_picture_graph_api_demo.html