Page 1 of 1
Facebook photos
Posted: Sat Apr 06, 2013 3:39 pm
by KennyR
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
Re: Facebook photos
Posted: Sat Apr 06, 2013 9:42 pm
by Simon
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
Re: Facebook photos
Posted: Sat Apr 06, 2013 10:50 pm
by KennyR
Thanks Simon! I must have overlooked that...Looks like it's just what the Dr ordered...
Re: Facebook photos
Posted: Sun Apr 07, 2013 3:40 am
by KennyR
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?
Re: Facebook photos
Posted: Wed May 01, 2013 10:50 pm
by theagilepad
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?
Re: Facebook photos
Posted: Wed May 01, 2013 10:52 pm
by theagilepad
For clarity, I only got the code to work in terms of retrieving names with birthdays from facebook using the graph api.