This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
How to get only friends with profile photos uploaded, and ignore those users with the default silhouette?
Is there a way to check if the user has a profile picture or just a plain blank picture using fql?
From the docs
pic: The URL to the small-sized profile picture for the object being queried. The image can have a maximum width of 50px and a maximum height of 150px. This URL may be blank.
Although, doing this query:
select pic from user where uid = xxxx
On a user I know doesn't have a profile pic, returned this:
{
"data": [
{
"pic": "http://profile.ak.fbcdn.net/static-ak/rsrc.php/v1/yV/r/Xc3RyXFFu-2.jpg"
}
]
}
Related
This question already has answers here:
Get user profile picture by Id
(16 answers)
Closed 5 years ago.
Apparently this question has already been answered.
Click the following link to follow through.
Get user profile picture by Id
Get the Facebook profile pictures using this link.
http://graph.facebook.com/" + facebookId + "/picture?type=square
For instance:
http://graph.facebook.com/67563683055/picture?type=square
There are also more sizes besides "square". See the docs.
*This answer was taken from here.
I want to have a link between the currently used profile picture and the original source in the profile album.
I'm getting the profile picture with:
/me/picture?redirect=false
Which will return url, width & height but unfortunately no id. (https://developers.facebook.com/docs/graph-api/reference/profile-picture-source/)
I'm getting all the albums with:
/me/albums?fields=id,type
Then I'm iterating through all the albums to find the one with the type=='profile' and then retrieve all the photos of this album:
/{albumId}/photos?fields=width,height,id,images
How can I identify the photo used as the profile picture?
Since we have no id returned from the /me/picture endpoint I don't see a way to make the link between the two objects.
Also, I'm not sure that we can rely on CDN urls to parse them and try to find the profile picture id.
I an using this url to get the image profile of user:
http://graph.facebook.com/userid/picture?type=large
But i noticed that i get image profile in 180*135 and i see that the image profile in my face book profile is more big then this.
It is possible to get the real image? or the large is the maximum?
Well, there is. You would have to create a facebook app, request access to the users picture albums, retrieve the images from the "Profile Pictures" album and scan that album for the currently used image.
If you have luck, its always the first image in the album. If not, you are in trouble and would have to do image comparsions.
This question already has answers here:
How does Facebook Sharer select Images and other metadata when sharing my URL?
(12 answers)
Closed 8 years ago.
I have a website and want to put a link to it on my status on facebook.
However, no image is displayed.
How can I determine to display an image with that link?
Thanks
Indeed. This is the answer. I must point out that I did everything ok, the problem was that I havent fetched the link, and thus the facebook was not updated which thumbnail to present. So the most important stage to do it to fetch the link
https://developers.facebook.com/tools/debug
This question already has answers here:
facebook like button - do you know if web user likes your page [duplicate]
(2 answers)
How to check if a user likes my Facebook Page or URL using Facebook's API
(5 answers)
Closed 10 years ago.
I want to check the status of Facebook like button on my web page. I want to this completely on client side without querying anything (if possible)
One idea is to check the style of the page. I have seen that there is an element with class "... like_button_like" or "...like_button_no_like" depending of the status. Is there a way to query this?
As I said, I don't want to delve into querying Facebook for this with FQL or anything else.
No. This is not possible without connecting user with your application. You doesn't need any additional permissions for that.
You cannot check for DOM elements class attribute since it resist in iframe which is served from facebook.com and cross-domain policy does't allow you to do this.
enter code hereIf we want to check user does like facebook page, we may use Javascript like this:
FB.api({ method: 'pages.isFan', page_id: 'YOUR-PAGE-ID' }, function(resp) {
if (resp) {
alert('You like the Application.');
} else {
alert('You don't like the Application.');
}
});
But if we want to know if use does like our website (not facebook page) we may use our own database to store user id when user click like, or click unlike.