Graph API与自己的应用程序主页Feed [英] Graph API vs own app home feed

查看:86
本文介绍了Graph API与自己的应用程序主页Feed的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从Facebook图形API v2.1中获取端点 / me / home

I'm trying to fetch the endpoint /me/home from the Facebook graph API v2.1.

使用Graph API Explorer工具,我会得到很好的结果,看起来像Facebook的手机应用程序显示。但是当我切换到我的应用程序并用完全相同的权限模拟完全相同的电话时,结果是不同的,并且包含很多不相关的帖子(如ARandomFriend喜欢链接)。

Using the Graph API Explorer tool, I get good results that look like what the facebook mobile app displays. But when I switch to my app and simulate the exact same call with the exact same permissions, the results are different and include a lot of non relevant posts (such as "ARandomFriend liked a link").

两个调用之间的唯一区别是访问令牌(相同的范围,相同的权限,同一用户)。我的猜测是,Facebook自愿向第三方应用程序返回不太相关的Feed,以便人们无法构建可以与他们竞争的应用程序。

The only difference beetween the two calls is the access token (same scope, same permissions, same user). My guess is that facebook voluntarily returns a less relevant feed to third party apps so that people can't build apps that can compete with them.

但也许我错了有没有人知道这个?

But maybe I'm wrong, does anyone know something about this ?

推荐答案

这与

通过Graph API / me / home 在Feed上看不到某些帖子

Some posts not visible on the feed through Graph API /me/home

href = SDK for .NET和Graph API Explorer新闻Feed不兼容

Facebook SDK for .NET and Graph API Explorer news feed mismatch

原因是Facebook的分数节点获得最多的热门故事。默认情况下,低评分节点不可见。您可以使用

The reason is Facebook "scores" nodes to derive the most "Top Story". Low scoring nodes are by default not visible. You can force all nodes with

/me/home.filter(owner)<some_filters like fields requests>

没有关于为什么这个实际工作的文档,但它是。您还可以通过执行以下操作强制所有节点为喜欢或评论:

There is no documentation on WHY this actually works, but it does. You can also force all nodes that are Likes or Comments by doing the following

me/posts?fields=likes.filter(stream),comments.filter(stream) 

这篇关于Graph API与自己的应用程序主页Feed的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆