Getting Up To Speed On Facebook Integration... Tips/advice?

Ha! OK, I slept on it and realized if I was getting an error about not passing a string, I could make my App ID a string by placing the number in quotes and that seems to solve that error message (“123456” instead of 123456). Is that correct to put the App ID number value into quotes to make it a string?

The simulator output does now give me a Warning that facebook.login() is not supported on the simulator (which confirms my question from last post about whether FB can be tested on the Corona simulator). 

How do you test your FB integration? Build to hardware?

Hey, EHO, I do place my FB App ID inside the quotes, and yes, it does make it a string.  About testing FB, I always test it on device.  It’s a pain in the neck.  I believe there’s a tool in code share that enables you to test FB via Corona simulator, but I  haven’t used it because mine stated working with out it, but I think it’s a great tool.

Naomi

Hi Naomi, 

I was able to finally get a test app set up and working with Facebook earlier this week. As I suspected, it seems really easy in hindsight! I appreciate all your insight, I would not have had the success I had without it.

I took the guts of this tutorial which pulls the user profile image of all your friends and tiles them randomly on your screen. It’s kind of cool in it’s own right. Pulling this info from my facebook account and displaying it in my app is one of the neatest experiences I’ve had as an app developer:

http://mobile.tutsplus.com/tutorials/corona/corona-sdk-working-with-the-facebook-graph-api-part-2/

If anyone else is looking for a sample to test out facebook integration with, I like this sample because you get a very visual result off of it. You know it’s working when it is! Please note that the build.settings didn’t work for me as specified in the tutorial. I had to set them up as specified in the Corona API which is different because it includes the “fbXXXXXXXXX” app ID string.

So I’ve got my app set up with FB and I can pull data (images) from my account. The next step for me is to figure out how to post to Facebook. How does a person test posting to facebook without posting all kinds of random things to one’s wall? Is there some test account available?

Thanks for all your help Naomi, it made a decided difference for me :slight_smile: