Extra caution is recommended when installing recently uploaded/updated scripts (read more)
Be sure you trust any scripts you install

Facebook View Photo in Album

Adds a link above photos to see them in their albums, even if you're not friends with the photographer. Adds links to view all photos of a user together (regardless of who took them). Adds links to view whole galleries/albums on one page.

Explanation of how the script works.

When viewing photos of a friend, and you come across one that has been taken by someone who you're not friends with, you will be unable to view the album that it is in.

This script will add a link above such photos that says "See this Photo in its Album". Clicking this link will reload the photo, but you'll be viewing it in the album that you couldn't view.

When you're viewing a photo that is in an album like this, the script will now add a link above the photo that says "Back to Album". This will remove the photo from the page and load a thumbnail gallery of all photos in the album (up to the capacity of 60 photos, not the usual 20-per-page deal that facebook does). The load time for this can be very slow.

When viewing all photos of a user, on the page that separates photos taken by them and photos taken by others, a link is added at the top to view all photos together.

View All Photos

When viewing a photo album or a photo gallery (or any page of images), when there are previous or next pages, a link is added to view all the images on the one page. The load time can be slow if there are several hundred photos, so be patient. The full page of photos is also compatible with my other script inYOf4cebook.

Any comments, suggestions or bugs, please leave details in the comments.

Screenshot

Updates

For users of this script who want to be kept up-to-date with updates to it, I recommend using the Script Updater script. I've not added an auto-checker on this script by default because I believe users shouldn't be bugged to update scripts, but I personally use this one above.

Update Log

31-May-2007: Initial Release.
1-June-2007: Minor bug fix.
26-September-2007: Minor change, shouldn't affect functionality but might iron out any bugs.
4-October-2007: Galleries taken by people you don't know can now be viewed, although load times are very poor.
12-October-2007: Minor changes to code. Also, now thumbnails images have titles which will dasplay on mouseover.
9-December-2007: Minor change in the code so that "Back to Album" link now shows on all relevant photo pages.
11-January-2008: A few cosmetic changes made.
13-January-2008: A link is now added on main photo pages for users (above photos added by that user and added by others) to view all these photos together.
14-January-2008: Added 'View All Photos' functionality. (See details above).
16-January-2008: Added ability to stop photos from loading in 'View All Photos' functionality.
18-January-2008: Minor bug fix; "View All Photos" text no longer shows on individual photos.
25-February-2008: Now links to a photo you can view instead of albums you can't when viewing all albums with a friend in. When viewing that photo, you can then view the whole album.
25-February-2008: Small further change to remove a stupid condition I accidentally left in. Should work fine now.
5-May-2008: "View all photos" now fixed to work when viewing > 1000 photos.
12-May-2008: Some privacy setting stop this script from working, so I've now changed it to tell the user when it isn't working.
14-May-2008: A few minor changes to restore some functionality lost due to recent facebook changes.
26-May-2008: Fixed bug as pointed out by Dan Cooper.
30-May-2008: Fixed bug as pointed out by tulipcorp.
3-June-2008: Bug fixed whereby when selecting "View all photos" and not on the first page of a set, the photos didn't display correctly.
23-July-2008: Full functionality should restored from facebook changes in mid-May.




2 hours ago
znerp Script's author

@Martin Stone: I've only just heard of this new interface this morning, but I'll have a look when I get time. I'm away this weekend so it looks like that might have to be early next week before I can put out a fix for this.

If you're interested in poking around though, from what you've said it sounds like the problem will be in my XHR. The most likely issues with it is that the link for the next photo can't be found/is wrong, or the format of the html in the new interface will be different and this will breaks the script.

 
3 hours ago
Martin Stone Scriptwright

Hi. Great script. I've flicked through it and can't find anything obvious that should stop it working with the new interface (being rolled out at the moment), but when I click "Back to album" the page does nothing and error console shows:

Error: [Exception... "Node was not found" code: "8" nsresult: "0x80530008 (NS_ERROR_DOM_NOT_FOUND_ERR)"

Any ideas?

 
Jul 6, 2008
Virzin Scriptwright

Try This Link for MORE THEN 7 PLUS FACEBOOK TIPS AND TRICKS ,PROXYLIST

http://www.vevin.com/facebook/manage-facebook-p...

TRY NOW AND MAKE YRS FACEBOOK PROFILE MORE ATTRACTIVE.

 
May 31, 2008
Sonar User

Your update log seems to be drunk? lol

 
May 31, 2008
znerp Script's author

@seven7: I think you're misunderstanding how this script works. Scroll up to and read what I've written under the heading "Explanation of how the script works".

 
May 31, 2008
seven7 User

i have greas@ install and enabled and i install your script..

when i open someone profile, not my friend, nothing happens, nothing is underline or illuminate or jumps out
like this http://www.facebook.com/profile.php?id=xxxxxxxx
how it works?

 
May 31, 2008
znerp Script's author

@seven7: Can you please explain what it is that you mean because I don't understand your comment. I've just tested the script and it's working fine for me atm.

 
May 30, 2008
seven7 User

not work for me
can you write example

fucking codes.......

 
May 30, 2008
znerp Script's author

@tulipcorp: Fixed the script, thanks for pointing this out. Stupidly simple fix as it turned out, don't know why Facebook made the change that broke it.

 
May 30, 2008
tulipcorp User

Not working anymore - the script has been blocked by facebook:

ERROR - The Facebook View Photo in Album script it unable to load this album.

It may be temporarily unavailable, or the album owner may have set their privacy options such that it is not possible to view the rest of this album.

* Reload image
* Return home

:(
Any chance to fix it this time?

 
May 25, 2008
Dan Cooper Scriptwright

There's a bug in the code where 'see this Photo in its album' is repeatedly added. it can be recreated by doing this:

go to a group's photos and click in the white space
press the right arrow on the keyboard to go to the next picture
repeat and you should get lots of the links at the top

i can provide a screenshot but have not at this time as it's pretty easy to replicate and you shouldn't have any trouble seeing what i mean. thanks

 
May 13, 2008
ree User

Hi all im new to this, is there anyway someone can help me get onto facebook? company has blocked me from going onto the site.

 
May 10, 2008
syed.1985 User

here is what i am getting.
i have a friend whose pictures have been tagged by their friend but the privacy policy doesnt allow me to view those pictures.

when i use this script using my profile to which the friend has been added, it simply says that i cant view coz of privacy settings. but when i try to search for the name using another profile (which doesnt have the friend added) it shows me that the user has no photos tagged of them.

now i know that is not the case because the user HAS photos tagged of them.

i clicked several other profiles and they all gave the same "no photos tagged" message. maybe these other people do not have photos tagged of them but my friend has.

so what is the problem here?

PS: that *wwwfacebook.com/photos.php?subj=user id" thing works. it does show the album, the album name, who added it, and the cover pic. but it wont let us access the pictures or see any thumbnail other than the cover.

i think the only way to see restricted pictures could be if one could find a way to find out the public id or url of the picture

 
May 6, 2008
flvtoipod User

http://flvtoipod.com
http://m4v-converter.com

welcome Itunes and Ipod fans join my site

 
Apr 19, 2008
Bakahashi User

Hey this is a great script, but when used in conjunction with the "FB Album" script, I noticed it caused the "FB Album" script to stop working. I have notified the other script author, I hope between you, you can resolve this issue, thanks!

 
Mar 17, 2008
znerp Script's author

@Dan Cooper: from what I can see on your script, the albums thing's not a new facebook feature at all; as I recall the FBookInfoBox script (link) added some similar functionality (although iirc, some links such as the notes links were patched up by facebook so wouldn't work any more). From my experience of this manipulation anyhow, this gives you very little actual benefit for most users.

 
Mar 17, 2008
Dan Cooper Scriptwright

@Sail Your Ship By:

You can view photos of someone who's not your friend using a little url manipulation ;) check http://userscripts.org/scripts/show/11218

(although you should comment out lines 21-24 in this script so it doesn't conflict with my own)

 
Mar 5, 2008
Sail Your Sh... User

i was just asking cause cooper said you can view the albums. i was just wondering how possible!

thanks though.

 
Mar 5, 2008
znerp Script's author

@Sail Your Ship By: I think the best (and possibly only) way to do this is by becoming friends with them.

 
Mar 5, 2008
Sail Your Sh... User

i can't figure out how to view all the albums of someone not my friend. i figured how to see the picture in an album.

someone help?

 
Feb 26, 2008
znerp Script's author

Ok, well I've had a play with this, and it seems that I've fixed it for some album links that didn't work (the ones that aren't private albums), but it won't work for private albums, and I don't believe that it would be possible to view these albums. Also, thanks Dan Cooper for answering my questions earlier.

 
Feb 26, 2008
xsaz User

Just a thought, it may not work as there was a loophole that worked to view peoples tagged pics not long ago and that got patched so the patching of that may prevent this from working?

 
Feb 26, 2008
Dan Cooper Scriptwright

the new feature you added doesn't work with private albums. I tried it myself.

You can only see the page with the image on (photo.php?pid=123...), if you can see that image when you view all the pictures they're tagged in. oh and as far as i know, there's no way of checking if the album is private or not from that page

To answer your questions:

#1 yes you can view the albums page of someone who is not your friend, but they have to have their privacy settings low of course

#2 that's not a question ;) but i have tried it under some conditions for you:

A person i was not friends with, it worked!
A private album, it linked to a content error
A normal album, it worked

#3 i had never seen this album thing before ray told me about it :D

 
Feb 26, 2008
znerp Script's author

I'm at work at the moment, so I won't be able to look at these problems until later tonight, but in the meantime if anyone checks back, can I ask a few questions...

  • is it possible to view this page for people who you're not friends with? It just occurred to me that that's a possibility, and I know it probably won't work in that case.
  • when viewing this albums page, find an album added by someone who you're not friends with. Instead of "View Album", the link should have been changed to "View Photo", and instead of a link of the form www.facebook.com/album?aid=12345&id=12345, it should be a link of the form www.facebook.com/photo?pid=12345&id=12345 (I'm doing this from memory, so forgive me if I'm slightly off on this).
  • Finally, is there a link to this albums page somewhere that I've missed? I know I've come across it before at some point, but I didn't realise that many people knew of it.

Thanks for your patience, and I'll definitely have a second look later today.

 
Feb 26, 2008
Brandonbray User

sorry, I still can't get it to work. However, I can tell that you changed something, since it's now saying that I do not have permission to go to "this link", instead of "this album". Progress? Thanks for the effort.

You could comment on this script if you were logged in.