简体   繁体   English

如何使用Graph API或FQL重新获取Facebook个人资料图片评论

[英]How To Retrive Facebook Profile Picture Comments using Graph API or FQL

I have tried all query but I can not get profile picture Id . 我已经尝试了所有查询,但我无法获取个人资料图片ID

because basic Syntax of graph API is here . 因为图API的基本语法在这里

if i get picture_id i can query like this profile_picture_id?fields=comments so it will give a all profile picture comments. 如果我得到picture_id我可以查询这个profile_picture_id?fields=comments所以它会给出一个所有的个人资料图片评论。

please help me how to get Profile picture id? 请帮我如何获取个人资料图片ID?

To get the id of the profile picture - 要获取个人资料图片id -

  1. Get all facebook albums of the user by - 获取用户的所有脸谱专辑 -

     /me/albums 

    Demo 演示

  2. Loop through the each object of the above albums and check if - 循环浏览上述相册的每个对象,并检查是否 -

     type == 'profile' 

    and get the album id from this object. 并从此对象获取相册ID。

  3. For this album_id, get the value of object cover_photo 对于此album_id,获取对象cover_photo的值

     /<album-id>?fields=cover_photo 

    Demo 演示

    This value of cover_photo is the id of profile pic of the user. cover_photo的该值是用户的简档pic的id

为FQL这项工作对我来说 -

SELECT object_id FROM album WHERE owner=USER_ID AND type="profile"

使用FQL ,您可以使用此单结果查询获取当前的个人资料图片ID:

SELECT cover_object_id FROM album WHERE owner=USER_ID AND type="profile"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用Android图形API获取Facebook个人资料图片更新时间 - Get facebook profile picture update time using graph api for android 获取Facebook Graph-API的个人资料图片 - Get profile picture from Facebook Graph-API 有没有办法在Android中使用Facebook图形API检索朋友周年纪念日 - Is there any way to retrive friends anniversary using facebook graph api in android 如何使用Graph api识别Facebook用户是否有个人资料照片? - How to identify if Facebook user has Profile Photo or Not using Graph api? FQL / Graph API中的Facebook主页 - Facebook Home Page in FQL/Graph API 在Android中使用图形API v2.3获取朋友的个人资料图片网址或个人资料图片 - get friend's profile picture url or profile picture using graph api v2.3 in android 如何使用facebook android sdk更改facebook个人资料图片? - how to change the facebook profile picture using facebook android sdk? 无法使用Android中的Facebook graph API查找喜欢和评论计数 - not able to find likes and comments count using Facebook graph API in android 如何在Android应用程序中使用几个Graph API获取Facebook Notes项目的评论? - How to get comments of Facebook Notes Items using several Graph API in android app? 从用于Ionic Hybrid Application的图形API中获取Facebook个人资料图片URL - Getting Facebook profile picture URL from graph API for Ionic Hybrid Application
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM