2012-09-19 34 views
7

我都遵循一個非常clear tutorial出版(股)一對FB時間表的故事。 您可以在FB Share按鈕後面的website上看到我正在使用的代碼。 如何強制照片變大而不是縮略圖? 我應該添加什麼js代碼(FB.ui)?一種行爲? 但我應該寫什麼? 我對FB api非常陌生,所以請用簡單的英語......謝謝! PaulFacebook的API - 如何發佈/股的大照片

+0

您可能想要上傳帶有說明中鏈接的圖片,而不是帶有鏈接及其縮略圖的帖子? –

回答

4

我檢查了您的代碼。您正在使用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: '' 
}); 

這insted的,請嘗試使用照片的方法如下

FB.api('me/photos', 'post', { 
         message: 'your message', 
         status: 'success', 
         access_token: access_token, 
         url: 'your_Img_url' 
        }, function(response) { 
        }); 

在這裏,我們上傳的照片。它會被保存在一個新的相冊中,因爲我們還沒有在上面的代碼中創建任何代碼,並且一張大照片會被貼到牆上。

+2

但是我們如何才能實現共享功能,如點擊帖子下的「分享」按鈕?我發現當點擊這個按鈕時,我的時間線上有一個分享帖子,但圖片沒有保存到我的相冊中(我更喜歡) – lenhhoxung

相關問題