• I realized that the image only works if I edit the post and do repost.
    I tested on facebook debug and it is 100% see:

    [ Redundant link removed ]

    if you click the button that I made available you will see that it is working only in your plugin that it does not pull image correctly, have any hook that I can do or any idea of yours?

    • This topic was modified 6 years, 11 months ago by Jan Dembowski.

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 38 total)
  • Hello @primo1983,
    Are you using any RSS feed plugins to fetch posts?
    Then may be the RSS feed plugin insert your post’s image after Facebook auto publish fetch content for auto post. I would like to suggest you to make those posts as WordPress scheduled posts, or buy the premium version.
    The plugin make the post’s image(featured image or image from post content) as og:image so that your post appear with preview image(when share link).I just checked it in our test site,and it is working for us.
    If any issues,please let us know.
    Thank you.

    Thread Starter zsvendo1983

    (@primo1983)

    the only plugin is yours, I have no other plugin
    As I said it only works if I edit the post then the image goes to Facebook

    Thread Starter zsvendo1983

    (@primo1983)

    looks at its function I did not find where I can set the image to force the image to go to facebook, I have this foreach that shows the url of the image:

    $terms = wp_get_post_terms($post->ID, ‘colunista’, array(“fields” => “all”));
    foreach ($terms as $term) {
    $images = get_field(‘image’, $term->taxonomy . ‘_’ . $term->term_id);
    $url_image = $images[‘sizes’][ $size ];
    }

    Hello @primo1983,
    As i already said there is a function to fetch the featured image or image from post content in xyz-functions.php ,which will grab the image if you set any.
    Could you please share the posting method you are using?
    If it fetch image while editing post then it will fetch image when adding new posts also.
    Please contact our support desk if the issue persist.
    Hope it helps.
    Thank you.

    Thread Starter zsvendo1983

    (@primo1983)

    You say to get in touch with the support, but the same does not respond, sorry, I will give 1 star and expose my problem to everyone being that the problem is the plugin.

    Thread Starter zsvendo1983

    (@primo1983)

    suggestion in function leave hooks so that we can send image of tax_term, get_term and so on, in my case they are 3 taxonomy, but its plugin does not send image worse than that it only sends in the edition.

    I realized that the image only works if I edit the post and do repost.

    This implies that the plugin is not able to fetch the image at the time of publishing to Facebook(which happens as part of transition_post_status action hook).Since auto publish is able to post the image after editing(assuming that you are not making any changes to post content/featured image), it confirms that the featured image is set after transition_post_status action hook is called.

    So you need to ensure that the featured image for the custom post type is available before transition_post_status hook is executed.This can be done only by altering the plugin code which manages the custom post type creation.

    Thread Starter zsvendo1983

    (@primo1983)

    what would be an example since my image leaves that part of code?

    $ terms = wp_get_post_terms ($ post-> ID, ‘columnist’, array (“fields” => “all”));
    foreach ($ terms as $ term) {
    $ images = get_field (‘image’, $ term-> taxonomy. ‘_’. $ term-> term_id);
    $ url_image = $ images [‘sizes’] [$ size];
    }

    Well I realize qe seems late something would work that way, give me a helping hand on it

    Thread Starter zsvendo1983

    (@primo1983)

    if this can be done: “This can be done only by altering the plugin code which manages the custom post type creation.”
    Tell us where, because other people have the same problem

    $ terms = wp_get_post_terms ($ post-> ID, ‘columnist’, array (“fields” => “all”));
    foreach ($ terms as $ term) {
    $ images = get_field (‘image’, $ term-> taxonomy. ‘_’. $ term-> term_id);
    $ url_image = $ images [‘sizes’] [$ size];
    }

    From this code it is clear that you are using image from custom post type.
    WP Facebook Auto Publish will only fetch image from post content or featured image.So you must set either featured image or Image in post content.
    To fetch image from custom post type ,it requires custom hooks,it can’t be added in WP Facebook Auto Publish,please get the premium version of FBAP so that we can add customisation for fetch custom post type’s image.
    For this please contact our Support Desk.
    Hope it helps.
    Thank you.

    Thread Starter zsvendo1983

    (@primo1983)

    I disagree with you, why does it work in editing?See you forcing everyone to buy the PRO version, would that be why?

    Not at all.

    As i already said,

    When you add a new post,the plugin is not able to fetch the image at the time of publishing to Facebook(which happens as part of transition_post_status action hook).Since auto publish is able to post the image after editing(assuming that you are not making any changes to post content/featured image), it confirms that the image is set after transition_post_status action hook is called.

    This implies that the custom post type save the image to wordpress database after the hook is called,but when you edit the post the image is already saved in database so the plugin is able to insert it to the Facebook post.

    So you must set the image before the hook is called or enable auto publish only when edit posts.Or make the posts as WordPress Scheduled posts,so that the image will be stored to database and the post will be published to Facebook when it is published on wordpress at the scheduled time.

    Hope this helps.

    Thread Starter zsvendo1983

    (@primo1983)

    the hook goes on your plugin or wp functions?

    transition_post_status is WordPress hook.
    Custom hook is added in plugin files.

    If any doubts or issues,please let us know .
    Thank you.

    Thread Starter zsvendo1983

    (@primo1983)

    I do not understand why you do not expose the solution here?
    I am questioning because I have seen several people with the same problem, and you have them with a solution selling the PRO, I think you can not do that being a bug it does not fetch the image by terms and only work in the edition, I see the same answer ready for all, I will insist and explain that you put the solution here so that we can pass other people and possible clients.

Viewing 15 replies - 1 through 15 (of 38 total)
  • The topic ‘Do not search the image in insert’ is closed to new replies.