Facebook Connect on Android: Never Works

Hi…
We developed a app for both iPhone and Android that uses the Facebook Connect module.
We have no problems in the iOS version, but the Android one never works.
It always say that ““An error occurred. Please try again later.””
We read all the entries in the forum about this issue, and I think is a issue that is not solved yet.

Our situation is that we cannot publish our app in the Android Market because it requires the access to facebook information not just for posting but for the normal run of the app, since it uses some facebook data.

So, we are stucked!!!
We tested on different devices and doesn’t work in all.

HTC Desire HD - OS: Android 2.3.3
Samsung GT-S5660: Android 2.2.1

We would like that anscamobile could solve this issue, since this app is strategic for us.

Regards
[import]uid: 13114 topic_id: 10637 reply_id: 310637[/import]

Hi,
The facebook connent on Android is very important for us. Can you spare some time on this issue?
Bob
[import]uid: 20999 topic_id: 10637 reply_id: 38657[/import]

I agree, I have spent the weekend combing the forums for the answer on this and I agree it is an issue.

My example works terrific on iOS (confirmed from my iPOD and IPad2)

Android is a #fail (I’m using my HTC Incredible)

I have the appropriate permissions in the build.settings file (android.permission.INTERNET)

ANSCA, once we get this solved it would also be good to have this setting included in the example as I think it will trip up many people with it not in there and it would be good if the examples get to a stage where they work out of the box (for both Android and iOS)

In fact, I have tried several trial and error builds of containing other permissions to see if it would break free. I’m not getting an error in my app but rather the screen tries to load the facebook html, I can see it go white and have the blue bar at the top, followed by a short delay, then the screen goes black, followed by a short delay and then returns to my app.

Also of note I am using the latest daily build and I have bounced back and forth from Peach’s tutorial and the updated form post, but no love on Android. Again, iOS is working quite nicely.

My next step will be to fire up the DBMS and see if I can capture anything of use in the logcats.

On a side note, in tracking this down and all the trial and error testing for Facebook the long build time for android is well um… lets just say I am feeling it. Don’t get me wrong, I’m loving it, but I am feeling it. :slight_smile:

Thanks to anyone with the clue to get this working!

Croisened

[import]uid: 48203 topic_id: 10637 reply_id: 38652[/import]

Hi guys,

I just commented on a similar post; I will be bringing this up in our next meeting.

Hang in there!

Peach :slight_smile: [import]uid: 52491 topic_id: 10637 reply_id: 39151[/import]

Hi
We just launched an Corona developed app both on Appstore and on Android market and the facebook connect does not rock n roll on any Android device EXEPT if the “UNSECURE SOURCES” are checked in the phone then it seem to work flawless in our tests so our misstake was to test all code on a device that had “UNSECURE SOURCES” checked and then published to Android market and now we are in a little panic here because its a big competition app and we will not gain any bonuspoints from the customer now.

So what kind of permission setting or somehting like that needs to be set in the build.settings maybe to make this work?

Please Corona, make this work [import]uid: 22737 topic_id: 10637 reply_id: 40905[/import]

take a look at the manifest settings in android

http://developer.android.com/guide/topics/manifest/manifest-intro.html

Then look for the flag you need to setup.

Follow the instructions in the build settings to setup the right entry for the manifest.

c. [import]uid: 24 topic_id: 10637 reply_id: 40919[/import]

Hi Carlos
I was wrong, that was not the issue. It does not work with the latest version on Android no matter what security setting we use.

This must be some kind of bug or issue with the Facebook Connect API.

When I send the facebook.login command the Android device opens up Facebook but never ends and stops on the facebook-page. [import]uid: 22737 topic_id: 10637 reply_id: 41000[/import]

To all who are having problems running the Facebook sample on Android, please check to see if you are running an updated Facebook app on your device.

A user reported that installing the “Facebook for Android” app from the Android Market, breaks the Corona Facebook app. I confirmed the problem on my Nexus One (v2.2) that works well with our Facebook sample. When I downloaded and started the updated FB app, I can no longer log in to Facebook from our sample. It calls the normal FB logon screen showing an activity indicator and then the screen goes black. If I check the history of running apps (press and hold the Home button), it shows the FB app was last running.

It looks like the updated FB app takes over the FB callback function and gets called when the Corona FB logon is called. This even occurs when I “force quit” the FB app. This may indicate a bug outside of Corona (just my guess).

We also have a ATT HTC Sense that shows the same problem. When I check the list of Apps (under Manage applications), it shows “Facebook” and “Facebook for HTC Sense”, so the carrier has preloaded an updated FB app.

I’ll file this as a bug for Engineering to see if there is a resolution. [import]uid: 7559 topic_id: 10637 reply_id: 41048[/import]

Any news on this? Workarounds? [import]uid: 22737 topic_id: 10637 reply_id: 41391[/import]

Any updates on this yet? [import]uid: 56715 topic_id: 10637 reply_id: 44460[/import]

We think we fixed it in our last daily build. Trying to verify the fix now. [import]uid: 7559 topic_id: 10637 reply_id: 44462[/import]

I Just tried building your guy’s sample app with my app id and it did the face book activity indicator with a dimmed screen than it closed and went back to the app. Same thing for the app i am building. This was today. Hopefully it gets fixed soon! [import]uid: 56715 topic_id: 10637 reply_id: 44464[/import]

Let us know how the verifying goes! Thanks! [import]uid: 56715 topic_id: 10637 reply_id: 44466[/import]

Let us know how the verifying goes! Thanks! [import]uid: 56715 topic_id: 10637 reply_id: 44467[/import]

Thanks Tom, this is nasty bugger for Android.

I was able to try this with Daily Build 562 a couple nights ago and it worked perfect on my wife’s Droid X, however on my Droid Incredible it was still the issue of the FB window starts to open then goes black, then back to the app.

Not much great info, but thought you should know I am seeing different results on different Android devices.

I’ll be sure to try the version you are verifying as soon as its ready and I can help verify on Droid X and Incredible.

Thanks!

–Croisened [import]uid: 48203 topic_id: 10637 reply_id: 44479[/import]

Just finished testing with build 565 on Nexus One with “Facebook for Android” installed and was able to logon and post messages and photo. This was not working before. I’m hoping this resolves the issue on Android.

-Tom [import]uid: 7559 topic_id: 10637 reply_id: 44493[/import]

O very nice, I am going to have to purchase my subscription now to get the build and finish my app… Thanks Tom and everyone else working on this!
[import]uid: 56715 topic_id: 10637 reply_id: 44495[/import]

Tom, great work!

I can confirm that using build 565 my Facebook API posting (message and photo) is working great on Droid X and Droid Incredible!

This is a real treat, because this was the only feature keeping me from pushing my 99 Bottles game and well now I am going to test it and roll it out.

Thanks again Tom and everyone providing information to squash this!

–Croisened
[import]uid: 48203 topic_id: 10637 reply_id: 44510[/import]

The facebook api still isn’t working for android on my app. I’m using build 565, and a 1st generation droid. It will bring up the login form, but after that nothing happens. There’s no response to facebook requests.

-Matt
W2MD [import]uid: 10211 topic_id: 10637 reply_id: 44871[/import]

Mostly working here:

Tested:
Samsung Galaxy Tab v2.2 - Worked
Samsung Galaxy SII v2.3.3 - Worked
HTC EVO 4G v2.2 - Worked
Nexus One v 2.3.4 - Failed. No attempt to log in. It does not even display the prompt in our app.

With the failed Nexus One, I even tried to remove the Facebook updates but this did not help.

@Tom. I see you have a Nexus One. Not on v2.3.4. Might be worth testing as perhaps it is another issue. [import]uid: 28534 topic_id: 10637 reply_id: 45138[/import]