Mobile app version of vmapp.org
Login or Join
Angie530

: How to get an RSS feed (or equivalent) of photos from defined Facebook Page and User Profiles? I'm looking for code or advice on how to get an RSS feed (or equivalent stream of data) of

@Angie530

Posted in: #Automation #Facebook #Feeds #PhotoGallery #Rss

I'm looking for code or advice on how to get an RSS feed (or equivalent stream of data) of photos from one or more Facebook Pages and User Profile pages.

Background:

This is for a friend who wants to show their photos from their Facebook profile and page on their own website. This means that they would only have to load new photos up once, on Facebook and this feature would automate showing them elsewhere.

Some technical conditions:


Privacy settings: The photographs would obviously be public in Facebook to enable them to be available externally
I understand that some procedure for registering with Facebook Developer site to get an Application id might be involved
Each picture should have the following data in the feed:

The direct URL of the image
The title
The album it is from
The user or page that it is from
The data of upload

Also in the feed would be the album notes and location


I'm aware of Wordpress Fotobook plugin wordpress.org/extend/plugins/fotobook/ that claims similar functionality (haven't tried it yet). However I think it would be better to have a generic version that could be used with any website technology, for my case the preference would be Drupal. A generic functionality would be output the feed as an RSS.

I'm considering writing the code myself but thought I would find out what is already out there.

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Angie530

2 Comments

Sorted by latest first Latest Oldest Best

 

@Cody1181609

Rather then exporting from Facebook, might it be easier for you -- and provide more long-term control to the client -- to post photos on their own site and then export these to Facebook using RSS Graffiti or some similar service, along with everywhere else?

10% popularity Vote Up Vote Down


 

@Bryan171

It is not possible to retrieve facebook photo data through RSS, you can however use the API which retrieves the data in json format.
You just need to know the specific id of the album you want to get the data from.

For instance, if I'd wanted to get the photos from this album: www.facebook.com/media/set/?set=a.10150666707363306.415137.40796308305&type=3
The number between the dots is the ID of the album, so: 10150666707363306

Now you need the graph API to retrieve the data like this: graph.facebook.com/id_of_album/photos, so this becomes graph.facebook.com/10150666707363306/photos.
Now you've got the data and you just need to parse the json to readable information.

I don't know the technology you're using, so here are some options (on the bottom of the page): www.json.org/
To get the photos of a user, this is much more complicated, as you need an access_token to get the data. I'd just get it from the page if I were you.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme