是否可以将照片发布到墙上(而不是为应用程序创建的相册中)?我想过遍历用户的所有相册并发布到名为"Wall Photos“的相册上,但我想知道是否有更优雅的方法?
谢谢
发布于 2012-01-13 01:23:09
您可以使用Javascript SDK中的FB.ui方法。如果您提供图像的URL作为link
和picture
参数。这将创建一个活动用户的墙上帖子,其中有一个图像,标题,标题,描述等。图像和标题将链接到您提供的任何URL。
FB.ui({
method: 'feed',
name: 'Name Goes Here',
link: 'link to the image',
picture: 'link to the image',
caption: 'caption goes here',
description: 'description goes here',
properties: ''
},
function(response) {
//You can check the response variable to see if the post has been created
}
);
发布于 2012-01-13 01:25:20
相册有一种类型,在Graph API中请求/albums时可以看到,因此您可以检查名称,而不是检查名称。
发布于 2012-01-16 19:52:42
最终使用了这里列出的方法https://developers.facebook.com/blog/post/526/。首先上传照片,然后使用object_attachment链接到它。
https://stackoverflow.com/questions/8838393
复制相似问题