Android – how do I log in to Facebook without a Facebook app?

I use the Facebook sample application (sessionloginsample) to learn how to log in to Facebook. My facebook SDK is the latest – version 3.0. When I install the Facebook application, I can log in without any problem

The problem is when I uninstall my Facebook application and reinstall the sample (so it won't automatically log in). I try to log in, but I can only see a white empty dialog box. My only choice is to close it. Even if I wait 10-15 minutes, the dialog box won't change

I tried to debug the Facebook SDK, but I couldn't find the cause of the error

I tested on lg-e610 (4.0.3) and HTC sensing (4.0.3)

Is this a Facebook SDK error or did I do something wrong?

Editor: I tested this problem again in the same code 10 days later, and everything seemed to work as expected

resolvent:

The problem may not be with you! I have encountered a situation where the same request to Facebook will be answered as expected or "internal server error 500" according to my IP (specifically IP / user agent)

You can determine that there are no problems with the configuration and application if:

>Your application is applicable to other networks (i.e. another IP) > the sample application from Facebook (i.e. Hello Facebook sample) encountered the same problem

>For Android, see: http://developers.facebook.com/docs/getting-started/facebook-sdk-for-android/3.0/ >For IOS, see: http://developers.facebook.com/docs/getting-started/facebook-sdk-for-ios/

I suspect Facebook has put some IP / user agent combinations on a temporary blacklist. The problem is that their generic 500 response is not helpful

For another reported case, please check my question on internal server 500 from Facebook with sepcific IP / user agent combination

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>