Hi all,
I've been able to get this module to mostly work, and it successfully pulls in the most recent Facebook posts from a certain user. However, I can't seem to get it to pull in images at all. I get the text of a post just fine, having it mapped to the body of a new content type I created.

Pictures though do not work. I've tried mapping the source "Picture" to all kinds of targets, but none are doing the job. I've tried the body field, text fields, link fields, file fields (image), and embedded image fields. They are always all blank after an import - no image at all.

I also tried mapping the "Full Picture" source from this post: https://www.drupal.org/node/2453327 to all those same field types but also to no avail.

Any ideas? Am I mapping to the wrong field types? Thank you for any help!

Comments

damonbla created an issue. See original summary.

damonbla’s picture

Status: Active » Closed (works as designed)

I actually just figured this one out on my own! After some debugging and figuring out that Facebook wasn't even sending back all the data anyway (i.e. it wasn't this module's problem), I did quite a bit of looking through the Facebook Graph API and found the problem.

For those who come across this in the future, the solution I managed to find was just to change the import url to something like this:

https://graph.facebook.com/{feed_id}/feed?fields=id,name,picture,message&key=value&access_token={token}

That is, you have to tell it which fields you want, and you will be sure to get them. Hope this helps someone! Oh also, mapping just into a File field set to the Image type worked to get the image to show up. Mapping to a text or link field will get you the url.