facebook connect: thumbnail images broken up in FB.Connect.streamPublish pop-up prompt, and on wall
Posted
by Hoff
on Stack Overflow
See other posts from Stack Overflow
or by Hoff
Published on 2010-02-18T13:20:49Z
Indexed on
2010/03/25
16:53 UTC
Read the original article
Hit count: 633
hi there!
I'm using facebook connect so that users can publish comments they are leaving on my site on their facebook wall as well.
It works as intended, except that in the confirmation pop up, the thumbnail image i provide is broken. Looking at the source, I can see that facebook prepended my image url like this:
from: http://www.mysite.com/path/to/my/image.jpg
to:
The image on the facebook user's wall has the same prepended url, and is also broken for a couple of minutes, after which it's showing up correctly. But obviously, having a broken image in the confirmation window and on your wall for a couple of minutes is not a good experience...
Has anybody experienced the same / knows how to work around this issue?
Thanks a lot in advance!
Martin
PS: here's the part of the js call, if it's of any use...
attachment = {
'media': [{ 'type': 'image', 'src': 'http://www.mysite.com/path/to/my/image.jpg', 'href': 'http://www.mysite.com/the/current/page' }]
};
FB.Connect.streamPublish(user_message, attachment, action_links, target_id, user_message_prompt, fbcallback, false, actor_id)
© Stack Overflow or respective owner