代表用户喜欢页面? [英] Liking a page on behalf of a user?

查看:31
本文介绍了代表用户喜欢页面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过 SDK 让用户喜欢"某个页面.用户已登录,我从 cookie 中获得了有效的访问令牌.我的 APP 已请求权限 read_streampublish_stream.我可以成功地做一些事情,比如在他们的墙上发帖等等.但是当我的 APP 尝试喜欢"一个页面时,我得到了错误:

I'm trying to get a user to 'Like' a page via the SDK. User is signed in and I get a valid access tokken form the cookie. My APP has asked for permissions read_stream and publish_stream. I can successfully do things like post to their wall, etc. But when my APP tries to 'Like' a page, I get the error back:

OAuthException: (#3) Application does not have the capability to make this API call.

我是否缺少其他权限,或者是否需要在我的 APP 中打开某个设置?我在这里不知所措.

Am I missing some other permission, or is there a setting I have to turn on in my APP? I'm at a loss here.

推荐答案

你不能代表用户喜欢一个主页 (Bugzilla 讨论).但是,您可以代表用户点赞帖子、评论和照片.

You can't like a Page on behalf of a user (Bugzilla discussion). You can, however, like posts, comments, and photos on behalf of a user.

由于 bugzilla 已不存在,因此无法访问上面链接的错误.Google 没有该页面的缓存版本,因此我进行了另一次搜索.我能想到的最好的事情是这个 Google 代码讨论关于ActionScript API.

Since bugzilla no long exists, the bug linked above is inaccessible. Google doesn't have a cached version of the page, so I ran another search. The best thing I could come up with was this Google Code Discussion regarding the ActionScript API.

Facebook 在文档中通过 Graph API 简要提到了发布喜欢,但没有不要以一种或另一种方式说您是否可以代表用户喜欢页面 - 只是对象"(可能有争议)不是 Facebook 术语中的对象".

Facebook makes brief mention of Publishing likes via the Graph API in the documentation, but doesn't say one way or another whether you can like a Page on behalf of a user - just "Objects" which (probably arguably) are not "objects" in Facebook-lingo.

我的想法是,喜欢页面的 API 是可用的,但仅提供给特殊"发布者编写的白名单应用程序(例如 Facebook iOS 和 Android 应用程序).Facebook 不希望/允许开发人员在图表上创建类似连接的原因很明显.它会被垃圾邮件发送者和其他邪恶的开发者利用,并会破坏 Facebook 页面上喜欢"代表的含义.

My thought is, the API to like page is available, but is only offered to white listed applications (such as, the Facebook iOS and Android applications) written by "special" publishers. There's obvious reasons why Facebook wouldn't want/allow developers to create like connections on the graph. It would be taken advantage of by spammers and other nefarious developers and would deteriorate the meaning of what a "like" represents for a page on Facebook.

我的猜测是,在 Facebook 甚至考虑授予您访问权限之前,您必须向 Facebook 提出一个非常有力的理由,说明您为什么需要/想要访问主页的 Like 连接(用于发布).我还猜想他们想验证您是否正在用户发起这样的创作(以 iOS 应用程序可以处理的方式),所以以保护喜欢"动作的声誉/意义.

My guess is, you'd have to make a pretty strong case to Facebook about why you need/want access to the Page's Like connection (for publishing) before they'd even consider giving you access. I'd also guess that they'd want to verify that you're doing only user initiated like creations (in such a way that the iOS application would handle it) so as to protect the reptutation/meaning of a "like" action.

这篇关于代表用户喜欢页面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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