Facebook photos

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
KennyR
Posts: 256
Joined: Thu Jan 19, 2012 4:25 am

Facebook photos

Post by KennyR » Sat Apr 06, 2013 3:39 pm

Hi to all my LC peeps...I was curious if anyone could point me in the right direction regarding importing FaceBook photos to my app. I am making a simple contact program and would like to have the option of using someones FaceBook profile picture as the programs contact icon. Currently, the user can pick photos from their own IOS library or camera roll, but having the option to import the contacts FaceBook photo would be a plus. Thanks for the help...

Kenny

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Facebook photos

Post by Simon » Sat Apr 06, 2013 9:42 pm

Hi Kenny,
You have looked at this right?
http://lessons.runrev.com/s/lessons/m/4 ... g-livecode
For a simple contact thingy seems a lot of work.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

KennyR
Posts: 256
Joined: Thu Jan 19, 2012 4:25 am

Re: Facebook photos

Post by KennyR » Sat Apr 06, 2013 10:50 pm

Thanks Simon! I must have overlooked that...Looks like it's just what the Dr ordered...

KennyR
Posts: 256
Joined: Thu Jan 19, 2012 4:25 am

Re: Facebook photos

Post by KennyR » Sun Apr 07, 2013 3:40 am

Well it looks like the demo from the link you provided does not work anymore. I have read the docs on FB developer website and created an app so the example program and FB could talk, but I cannot seem to get past the "Authorize" section of the example. It seems to allow me to log on to FB through the program, but importing a picture gives an error. I have set all my permissions through FB, but the example program gets hung up after "Authorize". The plugin just seems outdated or something....any ideas? anyone?

theagilepad
Posts: 50
Joined: Mon May 09, 2011 3:01 pm

Re: Facebook photos

Post by theagilepad » Wed May 01, 2013 10:50 pm

hi,

I managed to get the facebook code from Andre Garzia to work (and I am happy to supply this). I do have a few questions;

1) If I embed the facebook appid and secret key in the code, could it be accessed by say a hacker after it has been download from the iTunes app store? or is the binary downloaded unreadable?
2) The approach used by Andre Garzia a web based approach using https, oauth, post and get Has anyone used this approach and had it approved by Apple. Are there any issues with using this approach with facebook? i.e. do facebook prefer you to write an external using the iOS supplied libraries.
3) The documentation on the runrev lesson states that you only need to create an appid and secret key. Do I need to do anything else in facebook? I have managed to get the access to work with just an appid and secret key? The documentation does mention a website but is this necessary?
Paul Johnson
theAgilePad
Manchester - England
m : 07818 832421

theagilepad
Posts: 50
Joined: Mon May 09, 2011 3:01 pm

Re: Facebook photos

Post by theagilepad » Wed May 01, 2013 10:52 pm

For clarity, I only got the code to work in terms of retrieving names with birthdays from facebook using the graph api.
Paul Johnson
theAgilePad
Manchester - England
m : 07818 832421

Post Reply