Facebook API - how to publish / share a large photo

I carefully followed the clear tutorial to post a story about the fb timeline. You can see the code that I use on behind the FB Share button. How can I make a photo be bigger instead of a thumbnail? What should I add to js code (FB.ui)? Act? But what should I write? I am very new to FB api, so please just in English ... Thanks! Floor

+7
source share
1 answer

I looked at your code. You are using the feed method.

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: '' }); 

In this case, try using the photo method as follows

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

Here we upload a photo. It will be saved in the new album, since we have not created any of the above code, and a large photo will be posted on your wall.

+4
source

All Articles