应用未发布到用户的时间轴 [英] App does not post to user's timeline

查看:79
本文介绍了应用未发布到用户的时间轴的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Facebook Graph API和Open Graph开发了一个应用程序.当用户在我的网站上执行操作时,我希望我的应用显示自定义数据.我阅读了有关开放图并添加了开放图标签的信息,等等.我使用了以下代码

I have developed an app using Facebook Graph API and Open Graph. I want my app to display custom data, when the user performs an action on my website. I read about open graph and added a open graph tags, etc. I have used the following code

$post_url = "https://graph.facebook.com/me/myappnamespace:mycustomaction?method=post".
    "&mycustomobject=mywebpage".
    "&access_token=".$_SESSION['access_token'];

现在,每当用户使用此应用程序时,它就会出现在他的活动中.但是,它没有在他的时间表上共享.我需要什么权限才能要求用户发布到自己的时间轴上?目前,我正在要求publish_actions和publish_stream

Right now, whenever a user uses this app, it appears in his activity. But, it is not shared on his timeline. What permissions do i need to ask the user to be able to post to his own timeline? Currently, I am asking for publish_actions and publish_stream

我想念什么?我遵循了教程中的确切步骤,但是无法使用opengraph发布到时间轴.

What am I missing? I followed the exact steps in the tutorial, but am not able to post to the timeline using opengraph.

推荐答案

您无需添加除publish_actionspublish_stream以外的任何权限.但是您应该添加一个新标签,例如fb:explicitly_shared.将此设置为BOOL值.如果设置为true,它将显示在用户的时间轴中,否则将不会显示.

You no need to add any permissions except publish_actions and publish_stream. But you should add a new tag like fb:explicitly_shared. Set this as BOOL value. If you set true, it will show in the user's timeline, else it will not.

这篇关于应用未发布到用户的时间轴的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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