Support » Plugin: Facebook » Image in post not publish to facebook

Viewing 3 replies - 1 through 3 (of 3 total)
  • oh btw, i just updated this plugin to the latest version, then I got this image issue.

    Plugin Author Niall Kennedy

    (@niallkennedy)

    You can test the URL in the Facebook URL debugger to see if Facebook is able to successfully identify an image for the post. Minimum dimensions apply.

    Thanks, I managed to find the problem. It is with the has_post_thumbnail() function. It always returns false even though there is image in my post. Hence I did a little hack and added my own image detection in the post:

    $count = preg_match(‘/src=([“\’])(.*?)\1/’, $post->post_content, $match);
    if($count ) $args[‘picture’] = $match[2];

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Image in post not publish to facebook’ is closed to new replies.