Hello,
I want to pull facebook posts in blocks and Your module seems to be a good idea.
Problem: I keep getting these errors:

Notice: Undefined index: type - socialfeed_facebook_data() (eilutė 239 iš /home/a0022980/public_html/new/modules/socialfeed/socialfeed.module).
Notice: Undefined index: type - socialfeed_facebook_data() (eilutė 244 iš /home/a0022980/public_html/new/modules/socialfeed/socialfeed.module).

On these lines there is this code:

if ($facebook_entry['type'] == 'photo' || $display_all_posts == 0) {
      if ($display_pic == 1) {
        $message_feed['picture'] = $facebook_entry['picture'];
      }
    }

and

    if ($facebook_entry['type'] == 'video' || $display_all_posts == 0) {
      if ($display_video == 1) {
        $message_feed['video'] = $facebook_entry['source'];
      }
    }

so in the end I have only this generated: https://gyazo.com/a3fdee45846d6f27d5541ff281efee71 and errors on the top.

I can't find out why it is not recognizing types like photo and video...

Thanks in advance!

CommentFileSizeAuthor
#3 undefined-index-2796841-3.patch3.94 KBhemangi.gokhale

Comments

paulmark created an issue. See original summary.

paulmark’s picture

Category: Support request » Bug report
hemangi.gokhale’s picture

Status: Active » Needs review
StatusFileSize
new3.94 KB

hemangi.gokhale’s picture

Assigned: paulmark » hemangi.gokhale
Status: Needs review » Active

  • Hemangi Gokhale committed bfc2526 on 7.x-2.x
    git commit -m 'Issue #2796841 by Hemangi Gokhale: Can'\''t recognize "...
hemangi.gokhale’s picture

Assigned: hemangi.gokhale » Unassigned
Priority: Major » Normal
Status: Active » Fixed
Issue tags: -type, -images

Committed to bfc2526, thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.