pinger

    Monday, August 19, 2013

    how to get images in custom-facebook-feed no pro required !

    go to editing the plugin

    find the
      //**************************//
    //***CREATE THE POST HTML***//
      //**************************//

    and before //EVENT paste this

    $photo = $news->picture;
    $content .= "<img src='{$photo}'/>";

    19 comments:

    David talpur said...

    wow, great, I was wondering how to cure acne naturally. and found your site by google, learned a lot, now i’m a bit clear. I’ve bookmark your site and also add rss. keep us updated. custom facebook page

    zahid said...

    how to setuo the size of the photo

    Eliaz Beth said...

    Likes enormously increase the reputation of the website and as well as the accurate assortment depend; plenty of people will most likely be considering your account. likes on instagram The organizations that offer these items and services, will deliver you with non-automated or robotic likes and provide you with severe Instagram likes. The good issue about this could be the undeniable fact that they are promptly delivered towards your account so you do not have to attend that considerably. And when you're a compact company, soaring your Instagram likes will most likely be beneficial.

    김요한 said...

    I have some posts that has posted more than one pic, how could i post all of them? and how could i resize the picture?

    Daniel Ameneiros said...

    can you see the pics? sure? i can´t get it

    Unknown said...

    Can you please verify that this still works? I copied-pasted the above code before //EVENT but still nothing. Any help would be appreciated, thanks.

    joey said...

    I found the pro version here

    http://rajalla.com/wp-content/plugins/custom-facebook-feed-pro/

    download the archive.tar.gz

    Unknown said...

    @Sergiu

    I had the same problem. Add the following before //POST TEXT

    // IMAGE
    if (!empty($news->picture) && !empty($news->object_id)) {
    $object_id = $news->object_id;
    $picture = 'https://graph.facebook.com/'.$object_id.'/picture?type=normal&width=9999&height=9999';
    $cff_post_item .= '<img src="'.$picture.'" alt="" class="img-responsive" />
    ';
    }

    Also the class img-responsive is just width:100%;

    Unknown said...

    Does it working now?
    On my blog not. can help?

    Unknown said...

    Anyone have an update on this? Cant get it to work.
    i added Ike Chukwumah suggestion but nothing changed..

    Unknown said...

    Solution for new versions (2.4 in my case):

    Chukwumah suggestion is working, BUT you HAVE TO add one word to the facebook graph query, because the free version even not queries for the 'picture' (that's why it's not working now).

    So in custom-facebook-feed.php search this line (Line 799. in my case):

    $cff_posts_json_url = 'https://graph.facebook.com/' . $page_id . '/' . $graph_query . '?fields=id,from,message,message_tags,story,story_tags,link,source,name,caption....

    Modify "...fields=id,from,message..." to "...fields=id,picture,from,message..."

    And also add Chukwumah suggestion before //POST TEXT.

    By the way, anyone can add all the pro features (or even more) by exploring the Facebook Graph API (developers.facebook.com/docs/graph-api).

    Hope it helps...

    swapu said...

    After lots of trying i finally got this solution by using the facebook page plugin.

    Here is the details very easy to it no need for API or any thing. Follow the below link for more detail. Hope this will work for all you.

    https://developers.facebook.com/docs/plugins/page-plugin

    JohnMurdock said...

    Using (current) version 2.4.5 of Custom Facebook Feed use this code. It will display the picture in large resolution and link it to the source on facebook.

    $photo = 'https://graph.facebook.com/'.$news->object_id.'/picture?access_token=' . $access_token;
    if($news->link){
    $cff_post_item .= "<a href='{$news->link}' target='_blank'><img src='{$photo}'/></a>";
    }else{
    $cff_post_item .= "<img src='{$photo}'/>";
    }


    Additional you can comment out this line:
    if($cff_show_media_link) $cff_post_item .= $cff_media_link;

    just a guy said...

    JohnMurdock this worked but how can I put the photo under or over the "view on facebook" and "share" links?

    Unknown said...

    Hi JohnMurdock where do you add this code?

    Unknown said...

    I was looking for a professional research writer who offers affordable online Primary data Research Proposal Correcting Assistance before I landed on this amazing and informative post. I have learned a lot about the subject matter and I wonder where I could have found such information if it was not posted on this site. I am, therefore, grateful that this article was posted here and I am looking forward to reading more articles from this blog.

    Unknown said...

    @Albert Smith - Really dude!!!! really ????

    Unknown said...

    Facebook has offered the users one of the best platforms for sharing and marketing their ideas to the entire world. Images are often used by the users who want to reach to the target audience fast. It is in this case that I find this blog to bear the most useful and latest knowledge about Facebook. You can now get the best Editing service online and be enabled to edit your Facebook content professionally.

    Unknown said...
    This comment has been removed by the author.