Facebook album photo download

Newbie alert! Having had a break from coding for a number of years I’m now enjoying experimenting with Corona and loving it.

I managed to get the Facebook sample up and running and outputting to the console from device (seemed to require a device reset after enabling debug output but not sure that’s documented).

I’m interested in modifying it to download photos from a friend’s album. I’ve had a look at the facebook connect documentation but at this stage I’m having problems seeing how it fits in with the few Corona calls. Is it even possible? And if so does anyone have any tips? [import]uid: 29093 topic_id: 7593 reply_id: 307593[/import]

I’ll try rephrasing it. I’m trying to understand if the Corona solution for Facebook Connect is simply a wrapper for the full functionality (and hence complexity) or if it’s limited to what has been covered in the sample?

Can I access the full graph api to access friends and their photo albums via Corona calls or would I need to write a native app instead?

If it’s possible I’m happy to get stuck in, I just don’t want to waste my time trying to get my head around the Facebook api if what I want isn’t even possible.

Can anyone kindly point me in the right direction?

Many thanks :-). [import]uid: 29093 topic_id: 7593 reply_id: 27091[/import]

some elements of the graph API, don’t even require facebook connect i dont think eg here is Coca Cola’s wall photos album
https://graph.facebook.com/98423808305

you could just decode that json to get the images

but for your friends album, once you’re authenticated with fb connect, you should be able to get all you need from the graph api as far as i know
[import]uid: 6645 topic_id: 7593 reply_id: 27379[/import]

Thanks for the reply jmp909.

I have made some progress now or rather I have some more info.

Using the sample app when I use:
facebook.request( “me” ) OR
facebook.request( “me/friends” )

I get the data I expect back from: response = json.decode( event.response )

but when I use for example:
facebook.request( “me/feed” )
facebook.request( “me/photos” )
facebook.request( “me/albums”)

I don’t get anything useful back. When I use “printTable” to view the results they all seem to be empty. e.g.

[data] = table: 0x2b0ab0
{
}

I assume the problem is either with:

  1. facebook.request()
  2. json.decode()
  3. printTable()

I will carry on with this when I have time, I just thought someone out there may have some advice or be able to point out my stupidity :-). [import]uid: 29093 topic_id: 7593 reply_id: 27609[/import]

the first 2 requests are public, the other 3 will need extended permissions i believe

http://developers.facebook.com/docs/authentication/permissions/

[import]uid: 6645 topic_id: 7593 reply_id: 27615[/import]