jgorset/facepy — Issue #16: Issue with pictures in facebook posts
Author: tijs
Created: 2011-12-14 14:06:34+00:00
State: open

I posted this facebook graph api question on stackoverflow assuming it's unrelated to facepy but just to be sure i'm asking here as well.

http://facebook.stackoverflow.com/questions/8505736/picture-for-feed-post-never-shows-up-on-wall

I think i tried just about anything but perhaps i'm overlooking something. I've used a CURL example in that question but the actual facepy code looks like this:

```
def create_post(token, wall_owner, message, link, picture, name, caption, description):
graph = GraphAPI(token)
try:
response = graph.post(
path = '%s/feed' % wall_owner,
link = link,
picture = picture,
name = name,
caption = caption,
description = description,
message = message,
)
logger.debug(response, exc_info=True)
except GraphAPI.Error, e:
logger.error('Posting to wall failed, error: %s' % e)

@task()
def wall_post_topic(topic):
create_post(
topic.author.oauth_token.token,
topic.author.facebook_id,
"I posted a new topic",
"%s%s" % (settings.FACEBOOK_APPLICATION_URL, reverse('topic', kwargs={ 'topic_id' : topic.id })),
topic.wall_illustration,
topic.title,
"Can you predict it?",
topic.description,
)
```