Facebook Connect

Does anyone actually use facebook connect with Corona? The Facebook app example on this site is a year old and does not open the FB Connect dialog that users are used to seeing in other apps. I’m curious to know if anyone knows of an up-to-date solution to posting FB status messages from Corona. Thanks. [import]uid: 52127 topic_id: 18776 reply_id: 318776[/import]

I recently got it working. Facebook API does work with Android and Kindle Fire. I have not tested it with iOS yet. [import]uid: 76282 topic_id: 18776 reply_id: 72283[/import]

Did you start with the Facebook example app (http://developer.anscamobile.com/content/facebook), or are you using something else? [import]uid: 52127 topic_id: 18776 reply_id: 72286[/import]

The sample code in the CoronaSDK > SampleCode > Networking > Facebook folder works perfectly if you put in your own App ID.

I posted a status from it while demonstrating something to a friend about a week ago :slight_smile:

Peach [import]uid: 52491 topic_id: 18776 reply_id: 72352[/import]

I have all the new code in place added a hash key in facebook as well as a ios app id, i had the ( wrong id error before I used the correct hash key ) but now all i get is the generic facebook white screen of death.

It just says.

An error occurred please try again later.

No popup’s are triggered - even though its in the code listener.

Peach can you share any additional insights?

Larry Meadows
www.DoubleSlashDesign.com [import]uid: 11860 topic_id: 18776 reply_id: 77681[/import]

It sounds like potentially it’s a Facebook issue which happens from time to time.

If you provide your code however I can try to take a look at it for you later today :slight_smile:

Peach [import]uid: 52491 topic_id: 18776 reply_id: 77703[/import]

Hate to bump this, but I’m struggling yet again!

So I can’t get the facebook connect app working.

This is exactly what I’ve done so far:

First step: I went here:
https://developers.facebook.com/apps

I then created a “new app”
I took the AppID/API Key and copied in into the facebook connect code replacing the nil there.

I then, in terminal, typed this: keytool -exportcert -alias androiddebugkey -keystore debug.keystore | openssl sha1 -binary | openssl base64

from the coronasdk/resource library/android folder (thus using the corona debug.keystore)

after entering the password “android”

I took the string from terminal and copied it into the settings of the facebook app, pasting it into the Android Key Hash line and saved.

I then built the app from corona, and moved it onto my android device.

What happens? Absolutely nothing. The app runs, shows the background and the buttons but says “not connected” at the bottom, and tapping the buttons does absolutely nothing. It pretty much does exactly what running the app in the simulator does.

Between this and getting Oauth in twitter working, I’m totally losing it!
[import]uid: 37122 topic_id: 18776 reply_id: 82018[/import]

Hey Gigaflop,

Have you tested the app in the Xcode simulator? I’m not as up on Android stuff but I know Facebook is working in 704 - I have used it multiple times this week in new builds.

Can you do the above and let me know, please?

Peach :slight_smile: [import]uid: 52491 topic_id: 18776 reply_id: 82134[/import]

HI!..Can I create a publication without creating a Facebook application?. I WANT MY ACCOUNT FROM POSTING [import]uid: 59020 topic_id: 18776 reply_id: 82235[/import]

Hey Daniel,

The Facebook application is just to get an ID, you don’t make an app for Facebook you just create one on their website to get given an ID. It just involves filling out some info about your app.

Make sense?

Peach :slight_smile: [import]uid: 52491 topic_id: 18776 reply_id: 82415[/import]

Gigaflop,

I was getting similar issues but i am running ICS Passion android 4.03 and have not had time to try it on my wife’s galaxy S as of yet on 2.2.

It seems to me that you have done everything correct, I’ll see if I can get my sample running on wife’s phone ( when she’s not looking ).

anyone else get this working on android?

If so, how about some love hints to your work around.

Larry.
doubleSlashDesign.com [import]uid: 11860 topic_id: 18776 reply_id: 82609[/import]

LOL, that’s what I get for using Windows and Android. No Xcode for me, though I’m going to try it on my gf’s mac and try this Xcode stuff.

Though, in the end, I did get facebook support into my app and working fine, but the demo app “Facebook Connect” does not work in Android. I just referenced the ghost vs monsters code which has some facebook code commented out to do it.

So now both Facebook Connect and the Twitter demo apps I can say with pretty strong certainty do not work in Android. (The twitter one doesn’t work period)

I do applaud how easy the code was to get working, once I found something that worked to base off of, but again, spending hours trying to get Facebook Connect working was unfortunately wasted effort. Don’t know why it would work on iOS but not android. [import]uid: 37122 topic_id: 18776 reply_id: 82747[/import]

Same here, I tried to make sample facebook works on Android , I followed the same steps as Gigaflop did, not working, the sample facebook app just show
not connected. After I pressed the Post Msg button: There is a message:
… is misconfigured for Facebook login, Press Okay to go back to the application without connecting it to
Facebook.

Any update on this issue? [import]uid: 4508 topic_id: 18776 reply_id: 126966[/import]

same here…!
I’m forced to use a webview instead of the facebook module. [import]uid: 150930 topic_id: 18776 reply_id: 127007[/import]

Same here, I tried to make sample facebook works on Android , I followed the same steps as Gigaflop did, not working, the sample facebook app just show
not connected. After I pressed the Post Msg button: There is a message:
… is misconfigured for Facebook login, Press Okay to go back to the application without connecting it to
Facebook.

Any update on this issue? [import]uid: 4508 topic_id: 18776 reply_id: 126966[/import]

same here…!
I’m forced to use a webview instead of the facebook module. [import]uid: 150930 topic_id: 18776 reply_id: 127007[/import]