首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Facebook API -如何发布/分享大照片

Facebook API -如何发布/分享大照片
EN

Stack Overflow用户
提问于 2012-09-20 01:14:47
回答 1查看 5.3K关注 0票数 7

我在一个非常棒的clear tutorial上发布(分享)了一个fb时间线上的故事。你可以在FB Share按钮后面看到我在website上使用的代码。怎样才能强制图片变大而不是缩略图?我应该在js代码(FB.ui)中添加什么?行动?但是我应该写什么呢?我是FB api的新手,所以请用简单的英语…谢谢!保罗

EN

回答 1

Stack Overflow用户

发布于 2013-10-14 18:45:39

我看过你的代码了。您正在使用feed方法。

代码语言:javascript
复制
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: ''
});

为此,请尝试使用照片方法,如下所示

代码语言:javascript
复制
FB.api('me/photos', 'post', {
                        message: 'your message',
                        status: 'success',
                        access_token: access_token,
                        url: 'your_Img_url'
                    }, function(response) {
                    });

这里我们上传了一张照片。它将被保存在一个新的相册中,因为我们没有在上面的代码中创建任何新相册,并且会在您的墙上发布一张大照片。

票数 4
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/12499664

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档