I
I
i_want_to_know_everything2016-10-26 12:19:41
PHP
i_want_to_know_everything, 2016-10-26 12:19:41

Facebook php SDK send image?

For posting on the wall, I send this array of data, but it pulls up the picture itself from the page.

$feed  = array(
    'message'     => 'Message text',
    'link'        => 'http://example.com',
    //'picture'     => 'http://example.com/image.jpeg',
    'name'        => 'author_name',
    'caption'     => 'author_url',
    'description' => 'example text'
);

if uncomment 'picture' there is no send, how to post a custom picture to the post?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Philipp, 2016-10-31
@zoonman

Читайте ogp.me для подстановки корректной картинки.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question