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

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

问题描述

我想通过SDK让用户喜欢一个页面。用户已登录,并从cookie获取有效的访问权限。我的APP已要求权限 read_stream publish_stream 。我可以成功地做一些事情,比如张贴到墙上等等。但是当我的APP尝试像一个页面时,我会收到错误:

 code> OAuthException:(#3)应用程序没有能力进行此API调用。 

我是否缺少其他许可,还是有我需要在我的APP中打开的设置?我在这里亏损。

解决方案

您不能代表用户喜欢页面( Bugzilla讨论)。但是,您可以代表用户发帖,评论和照片。






编辑7/9/2012



由于bugzilla不再存在,上面链接的错误是无法访问的。 Google没有页面的缓存版本,所以我运行了另一个搜索。我可以想出的最好的事情是这个 Google代码讨论关于ActionScript API。



Facebook简要提及发布喜欢通过文档中的Graph API,但不会说一种方式,无论您是否可以代表用户喜欢一个Page - 只是对象(可能可以说)在Facebook中不是对象 - 我的想法是,API的页面可用,但只提供给白名单的应用程序(如Facebook iOS和Android应用程序)写入由特殊出版社出版。 Facebook显然不希望/允许开发人员在图表上创建类似连接的原因很明显。这将被垃圾邮件发送者和其他恶意开发人员利用,并且会使Facebook的页面上的喜欢代表的意义恶化。



我的猜测是,你不得不向Facebook提供一个非常强大的例子,说明您为什么需要/想要访问网页(Connection)的连接(用于发布),才能考虑让您访问。我也猜测他们想要验证你是否只是 用户发起的像创作(以这样的方式使iOS应用程序处理它)以保护喜欢行动的重新启示/意义。


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.

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.

解决方案

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.


Edit 7/9/2012

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 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.

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.

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天全站免登陆