Monday, May 30, 2011

[android-developers] 回覆:Re: 回覆:facebook

Hi Ali,

Quoted from https://github.com/facebook/facebook-android-sdk

Testing

Here are some tips to help test your application:

  • You will need to have the Facebook application in your test environment. The SDK includes a developer release of the Facebook application that can be side-loaded for testing purposes. On an actual device, you can just download the latest version of the app from the Android Market, but on the emulator you will have to install it yourself:

    adb install FBAndroid.apk

  • Use a signed build. You can sign with a debug key, but make sure that the key you used to sign matches the Key Hash field in the Facebook developer settings.

  • Make sure to test both with and without the Facebook application. The SDK will fall back to a Webview if the Facebook app is not installed.

  • You can use this guide to developing on a device.


User authentication & authorization are performed by Facebook SDK for android. If you have official app installed, the process will be seamless.
In you app, all you need is to provide the SDK your facebook APP_ID, no need to store the SECRET KEY.


The only trick I found is the key hash, please follow this web page on how to get the hash.
http://www.helloandroid.com/tutorials/using-facebook-sdk-android-development-part-1

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment