开发者

Facebook Graph API - Is there is a way to determine if a user has uploaded a photo?

Some FB users have not uploaded a profile photo. When they authen开发者_StackOverflow中文版ticate to my app I don't want to store these default FB photos like so:

https://fbcdn-profile-a.akamaihd.net/static-ak/rsrc.php/v1/yp/r/yDnr5YfbJCH.gif

Is there an API call I can use to determine if the user has uploaded a custom photo?

Thanks


No.

Don't know what else to tell you :)

The only way I could think of doing it would be to pull the user's albums and look for the "Profile Pictures" album. There's a count element there.


Maybe. Read http://developers.facebook.com/docs/api/realtime/ Your app can subscribe to changes to a user's properties. The profile picture is a property of the user object so you can be notified when it changes. The other photos are not properties of the user object, they are listed under Connections at http://developers.facebook.com/docs/reference/api/user/ so I don't know if you can access them from the real time notification api. Whatever, you need the user_photos permission to list them.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜