我怎样才能制作像《华盛顿邮报》社交阅读器这样的东西?
我制作了一个使用以下代码自动发布到我的时间线的应用程序:
FB.api(
'/me/linksku:read?article=<?php echo $permalink; ?>',
'post',
function(response) {
if (!response || response.error) {
alert('Error occured');
}
}
但是,这只适用于我。它对其他人不起作用。我怎样才能制作像《华盛顿邮报》社交阅读器这样的东西?
I make an app that automatically posts to my timeline using the following code:
FB.api(
'/me/linksku:read?article=<?php echo $permalink; ?>',
'post',
function(response) {
if (!response || response.error) {
alert('Error occured');
}
}
However, this only works for me. It doesn't work for anyone else. How can I make something like the Washington Post Social Reader?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
只有当您从开发者仪表板提交操作以供批准后,Facebook 批准您的操作后,您所看到的内容才会对 Facebook 上的每个人可见。目前,所有批准都在等待 Facebook 向所有人发布时间表。
What you are seeing will be visible to everyone on Facebook only after Facebook approves your actions after you submit them from your developer dashboard for approval. Currently all approvals are pending until Facebook releases timeline to everyone.
您必须在网站上实现开放图并设置操作类型。还需要实现开放图元标签。
查看这个链接,其中实现了开放图元标记。
You have to implement open graph on your website and set action types. Also open graph meta tags need to be implemented.
Look at this link where open graph meta tags are implemented.