Facebook publish_action权限不适用于发布 [英] Facebook publish_action permission not working for posting

查看:1514
本文介绍了Facebook publish_action权限不适用于发布的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前,我可以使用我的一些网页的objectid来发布新闻Feed更新到已经喜欢这些页面的Facebook用户。

Currently i can post news feed updates using objectids of some of my web pages to facebook users who have liked those pages.

现在我试图测试新的开放图和自定义动作做同样的事情;向我的网站发布特定操作的用户发布更新。但是即使我的应用程序获得publish_actions权限,并且使用我的Facebook帐户和我的应用程序的一些虚拟测试用户帐户(我知道,直到时间线发布,只有开发人员和测试用户可以使用所述权限),当我尝试发布我收到此错误消息:
{error:{message:(#200)需要扩展权限:publish_actions,type:OAuthException}} / code>。

Now i'm trying to test the new open graph and custom actions to do the same; posting updates to users who made a specific action on my web site. But even though i get publish_actions permission with my app, and using my facebook account and some dummy test user accounts for my app (i know that until timeline is released, only devs and test users can use said permission), when i try to post i get this error message: "{"error":{"message":"(#200) Requires extended permission: publish_actions","type":"OAuthException"}}".

我也将我的应用程式类型更改为游戏,这样我就可以从auth对话框中正确获取publish_actions的权限。

I also changed my app type to Games so i can properly get publish_actions permission from auth dialog.

有什么想法可以帮助我吗?或者我只需要等到时间线发布才能正常测试新的开放图表发布?

Any ideas that can help me with this? Or do i just have to wait until timeline is released before i can test new open graph posting properly?

编辑:发送请求包含这些参数;

request sent contains these parameters;

to: https://graph.facebook.com/feed
["access_token": "given access token", 
"message": "post message", 
"caption": "post caption", 
"picture":"picture url", 
"link": "link to post", 
"description": "post description", 
"ids": "object ids separated by commas"]

编辑2:通过添加到时间轴按钮请求权限:

I ask for permissions via Add to timeline button:

<fb:add-to-timeline show-faces="true" mode="button" perms="offline_access,publish_actions,publish_stream"></fb:add-to-timeline>


推荐答案

我怀疑你没有正确要求许可。这让我疯狂了几个小时。即使我正确地要求许可,并且它似乎是进行身份验证,实际上没有授予许可,因为我没有正确设置开放图表的应用程序。

I suspect you are not correctly asking for the permission. This drove me crazy for hours. Even though I was correctly asking for permission and it appeared to authenticate, in reality the permission was not being granted because I had not setup the application correctly for open graph.

要求 publish_actions ,Facebook显示一个预览屏幕,显示您的应用程序将在其时间轴上创建什么样的聚合。

When asking for publish_actions, Facebook shows a preview screen of what sort of aggregations your app will create on their timeline.

换句话说,如果预览不起作用,Facebook将不会要求获得许可,因此您无意中要求。 Facebook不会在文档中清楚,但是所有内容都需要通过Facebook上的应用程序完美设置,才能使其正常工作。

In other words, if the preview isn't working, Facebook won't ask for the permission so you're asking in vain. Facebook doesn't make this clear in the docs, but everything needs to be perfectly setup with your app on Facebook to get this to work right.


    <在应用程序的高级设置中启用增强的Auth Dialong
  1. 确保您在开放图表中设置了至少一个操作和一个对象 / code>部分

  2. 对于每个 操作必须有一个聚合设置。

  1. Enable Enhanced Auth Dialong in the advanced settings of the app
  2. Make sure you have at least one action and one object set up in the open graph section
  3. For each action you must have an aggregation set up.

如果你不这样做步骤,可以不预览,所以Facebook不会要求许可,无论什么。

If you do not do all of these steps, there can be no preview and so Facebook won't ask for permission no matter what.

这篇关于Facebook publish_action权限不适用于发布的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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