MyBB Community Forums

Full Version: Problem with images from Facebook not showing
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Site: www.vampirecounts.net
Example post: http://www.vampirecounts.net/Thread-Imag...#pid207254

Problem:
Following the recent overhaul of my site, which included upgrading my forum software to the latest version and installing a new theme, images linked from facebook are now showing.

If you look at the post example, the first image just does not show, the code for the image is:

[img]http://a8.sphotos.ak.fbcdn.net/hphotos-ak-ash4/253154_10150199786806464_98255681463_7509630_5892017_n.jpg[/img]

Yet there is nothing wrong with the code. Also, other images which previously showed and were linked from facebook appear to have stopped working.

The image was then uploaded elsewhere, and linked and you can see the second photo in the post.

It has been suggested it might be something to do with the length of the link, though I don't know why this would be the case.

So any suggests as to why this is happening would be very much appreciated.

Cheers!
The image “http://a8.sphotos.ak.fbcdn.net/hphotos-ak-ash4/253154_10150199786806464_98255681463_7509630_58920%E2%80%8B17_n.jpg” cannot be displayed because it contains errors.

It's not an issue with MyBB, it's an issue with Facebook. Maybe it's from a private album.
If that is the case, why did it just happen during the forum upgrade, it was working fine before that?

He has also managed to link them on this site and they work:

http://z3.invisionfree.com/Unwritten/ind...=1187&st=0

You can click on the links and they show the pics
I have done some further testing.

Uploading the image to photobucket and linking also doesn't work, and I think it is down to the length of the image name.

Here is the file:

[Image: 253154_10150199786791464_98255681463_750...9777_n.jpg]

and the code

[IMG]http://i282.photobucket.com/albums/kk241/MrandMrsGoth/253154_10150199786791464_98255681463_7509628_49777_n.jpg[/IMG]

Can anyone direct me to where something in my coding is affecting the length of the image name and loading it?
Sorry to bump this, but does anyone have any ideas in regards to this error. It definitely relates to the link size, so if anyone can advise why that might be, point me in the right direction that would be great.
To rule out plugins as a cause of this issue, please try the following. In ./inc/init.php, find the code:

define("TIME_NOW", time());

After this code, add this:

define("NO_PLUGINS", 1);

Then save and/or reupload this edited version of the file so the forum will run the new code.

This edit will stop plugins being run when a page on the forum is loaded; it will not edit, delete or reset any content the plugin has added or changed, it will just temporarily stop the plugins being loaded, so some features on your forum may be temporarily missing or broken whilst this code is in place. When you remove this code, plugins will work again exactly as they were before. This change helps us to see if a plugin is the cause of a problem, without you having to manually deactivate every single plugin, which would mean you may lose data from them.

If your issue is fixed when this code is added, then the cause of your issue is a plugin; please post a list of your plugins and we will try and help you find which one it may be. If the problem still happens with this code added, then it is unlikely a plugin is the cause, in which case we will investigate the issue further.

Thank you.
Hi,

Sorry for the delayed reply - real life was interfering with time spent on my site!

Anyway, I did as you advised and it did not fix the issue. The image did not show so it suggests the cause is not down the plugins.

What should I try next?
Hi, I have not had any response. Please can anyone help with this issue?
I know this is super old, but I've been having the same problem since moving to 1.8. After finding this thread, I tried running the long FB url through goo.gl for a shorter one.

Popped it in, and Hey Presto! I haz a picture!

Shortened urls do not work with embedding vimeo, but it worked perfectly for FB pix.
BETTER SOLUTION
Thanks to Destroy666

Quote:ACP -> Configuration -> Posting -> Number of Characters before Word Wrapping Occurs


It should be higher than the usual FB image link length.

FB image tends to be 215 characters. Set above to 0 and see if it works. 

http://community.mybb.com/thread-160876-...pid1116539
wow it works
thnx so much alia
Pages: 1 2