【问题标题】:Facebook API - how to publish/share with big photoFacebook API - 如何发布/分享大照片
【发布时间】:2012-09-19 17:14:46
【问题描述】:

我非常关注clear tutorial 在 fb 时间轴上发布(分享)一个故事。 您可以在 FB Share 按钮后面的 website 上看到我正在使用的代码。 如何强制照片变大而不是缩略图? 我应该在 js 代码(FB.ui)中添加什么?一种行为? 但是我应该写什么呢? 我对 FB api 很陌生,所以请用简单的英语...谢谢! 保罗

【问题讨论】:

  • 您可能想上传描述中带有链接的图片,而不是带有链接及其缩略图的帖子?

标签: facebook-graph-api photo


【解决方案1】:

我浏览了您的代码。您正在使用 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) {
                    });

我们正在上传照片。它将保存在新相册中,因为我们没有在上述代码中创建任何内容,并且一张大照片将发布在您的墙上。

【讨论】:

  • 但是如何实现分享功能,比如点击帖子下方的“分享”按钮?我发现当点击这个按钮时,我的时间轴有一个分享帖子,但图片没有保存到我的相册(我更喜欢)
猜你喜欢
  • 2014-05-25
  • 1970-01-01
  • 1970-01-01
  • 2014-09-13
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多