简体   繁体   English

使用Facebook Graph API的Facebook用户帖子/提要未显示

[英]Facebook users posts/feed not showing , using Facebook Graph API

I am using Facebook Graph API in Salesforce and using user search fetching all the users . 我在Salesforce使用Facebook Graph API ,并使用用户搜索获取所有用户。

On clicking or selecting one of the particular user , the posts/feeds of that user/profile didnt coming up. 单击或选择特定用户之一后,该用户/个人资料的帖子/提要并没有出现。

I am making an HTTP GET request with endpoint URL as : 我正在使用端点URL发出HTTP GET请求:

**endpointurl=**'https://graph.facebook.com/'+searchtxtfblocal+'?fields=id,name,location,picture,education,birthday,link,first_name,last_name,statuses.limit(20).fields(message,id,updated_time),photos.limit(20).type(uploaded).fields(id,link,picture,source,updated_time,name,created_time,width,icon,height),videos.limit(20).type(uploaded).fields(id,source,picture,created_time,embed_html,name,updated_time,description),links.limit(20).fields(created_time,description,link,id,name,message,picture,icon)&access_token='+facebooklogindetailxml.AccessToken;

where searchtxtfblocal is user/profile id . 其中searchtxtfblocaluser/profile id

Now certain parameters of this endpoint are coming Null like statuses , username , birthday , links , likes , photos ,etc in the debug . 现在,此端点的某些参数在调试中变为Null例如statusesusernamebirthdaylinkslikesphotos等。

I have valid access token, still getting these parameters null. 我有有效的访问令牌,仍然使这些参数为null。

Can you please suggest a way to rectify this error? 您能否提出纠正此错误的方法?

These must have to do with permission scopes, and you haven't specified the querying user. 这些必须与权限范围有关,并且您尚未指定查询用户。 If the querying user me (meaning the access token belongs to the person who you're querying for), you require corresponding permission scopes, for example; 如果查询用户me (意味着访问令牌属于您要查询的人),则您需要相应的权限范围,例如;

statuses & links require read_stream or user_posts statuseslinks需要read_streamuser_posts
birthday requires user_birthday birthday需要user_birthday
likes requires user_likes likes user_likes需要user_likes
photos requires user_photos photos需要user_photos

If you're querying for some other user, you can only retrieve public feeds. 如果要查询其他用户,则只能检索公共供稿。

username is deprecated, and doesn't work anymore. username已弃用,不再起作用。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM