And WOO HOO… if you pass a height and width of 100x100 you get a square image!!!
[import]uid: 19626 topic_id: 32422 reply_id: 129745[/import]
hey Danni…
thank you for the Code… again … i added
local facebook = require(“facebook”)
you forgot in that code…
but still … i change the number in the “facebook.login” (last line) to my apps number…
and still i’m only seeing a black screen …
so this code TOO is NOT WORKING …
please please does ANYBODY know of a code to retrive a facebook pictre that works ?!
i’m foustrated about it.
anyone ?
[import]uid: 174056 topic_id: 32422 reply_id: 129807[/import]
@oripost, if your app is not working then there is one of two thing going on.
-
and this is the most likely scenerio. You don’t have something setup right between facebooks’ settings and your build.settings file. The code above works.
-
You have some error in your code, perhaps a typo or something unique to your code that’s causing your app to crash.
The best thing to do is load up your code with some print statements, tether your device to your computer and use Xcode’s Organizer’s Console Log to see the output from the device (you will need to be on daily build 919 or later because of iOS 6 breaking Corona’s print statement) or if you’re using an Android device, use the command line: adb logcat to see it’s log. You of course will have to go through the steps to install adb if you have not already. This will give you an idea of where you’re failing, if Corona is generating a crash error.
If your device has the facebook app installed. You have to be logged into that app before you run your app. You have to have the right URL schema in your build.settings which is fbXXXXXXXXX where XXXXXXXXX is your facebook App ID. There can be no syntax errors in build.settings (like missing commas) and those errors tend to not get reported.
[import]uid: 19626 topic_id: 32422 reply_id: 129820[/import]
hey Danni…
thank you for the Code… again … i added
local facebook = require(“facebook”)
you forgot in that code…
but still … i change the number in the “facebook.login” (last line) to my apps number…
and still i’m only seeing a black screen …
so this code TOO is NOT WORKING …
please please does ANYBODY know of a code to retrive a facebook pictre that works ?!
i’m foustrated about it.
anyone ?
[import]uid: 174056 topic_id: 32422 reply_id: 129807[/import]
@oripost, if your app is not working then there is one of two thing going on.
-
and this is the most likely scenerio. You don’t have something setup right between facebooks’ settings and your build.settings file. The code above works.
-
You have some error in your code, perhaps a typo or something unique to your code that’s causing your app to crash.
The best thing to do is load up your code with some print statements, tether your device to your computer and use Xcode’s Organizer’s Console Log to see the output from the device (you will need to be on daily build 919 or later because of iOS 6 breaking Corona’s print statement) or if you’re using an Android device, use the command line: adb logcat to see it’s log. You of course will have to go through the steps to install adb if you have not already. This will give you an idea of where you’re failing, if Corona is generating a crash error.
If your device has the facebook app installed. You have to be logged into that app before you run your app. You have to have the right URL schema in your build.settings which is fbXXXXXXXXX where XXXXXXXXX is your facebook App ID. There can be no syntax errors in build.settings (like missing commas) and those errors tend to not get reported.
[import]uid: 19626 topic_id: 32422 reply_id: 129820[/import]