我在一个非常棒的clear tutorial上发布(分享)了一个fb时间线上的故事。你可以在FB Share按钮后面看到我在website上使用的代码。怎样才能强制图片变大而不是缩略图?我应该在js代码(FB.ui)中添加什么?行动?但是我应该写什么呢?我是FB api的新手,所以请用简单的英语…谢谢!保罗
发布于 2013-10-14 18:45:39
我看过你的代码了。您正在使用feed方法。
FB.ui(
{
method: 'feed',
name: 'Paul Godard – Soul Photography',
link: 'http://www.paulgodard.com/',
picture: 'http://www.gondwanastudio.com/xMedia/Images/Photos/PG_010501-011000/PG_010927.jpg',
source: '',
caption: 'Paul Godard | Soul Photography | Landscape | Nature | Fine Art',
description: 'I am blessed. I have 2 wonderful children Enya and James and my best friend is their mother, my soulmate for many years. I live in a wonderful home in Africa, the wildest continent of the world. I am very privileged and grateful. There is so much beauty around us but people dont see it anymore...',
message: ''
});为此,请尝试使用照片方法,如下所示
FB.api('me/photos', 'post', {
message: 'your message',
status: 'success',
access_token: access_token,
url: 'your_Img_url'
}, function(response) {
});这里我们上传了一张照片。它将被保存在一个新的相册中,因为我们没有在上面的代码中创建任何新相册,并且会在您的墙上发布一张大照片。
https://stackoverflow.com/questions/12499664
复制相似问题