D
D
Dastan2016-05-24 14:52:31
JavaScript
Dastan, 2016-05-24 14:52:31

What determines the size of the image when sharing through Facebook?

When I share via the button I made it looks like this:
db2e427e703a4aff806709d17dfea824.jpg
And when I go to my page and manually post this link, it looks like this:
84d1df4e23154f09a622d8c37895047a.jpg
I thought my image was smaller than 1200 x 630 px at first. ( Why? )
But when I enlarged the images, nothing changed.
Who knows what's the catch?
I implemented the share button through the Facebook JavaScript API, more precisely through FB.UI:

FB.ui({
                method: 'share',
                href: window.location.origin + '/?q=' + query,
                quote: 'Я тоже получил(а) 10% скидку на покраску машины. Получи и ты',
                mobile_iframe: 'true'

            },
            // callback
            function (response) {
                if (response && !response.error_message) {
                    console.log('Posting completed.');
                } else {
                    console.log('Error while posting.');
                }
            });

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
PerfectLab, 2016-05-24
@PerfectLab

It looks like when you share through the script, the url of the page leads to the main page,
query - is it true?
https://developers.facebook.com/tools/debug/sharing/ - here you can see how the page looks when you click on share on Facebook.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question