Hi, all
Continuing the announcements on Facebook API ME, yesterday, I released Facebook API ME v1.0 for Android. This version uses WebView component from Android API to display the authentication page. As I explained in this tutorial, to use the API for other platforms, you just need to work with the respective wrapper class for the target platform. Regarding Android, you will have to use WebViewAuthDialogWrapper.
...
WebView webView = ...;
AuthDialogWrapper pageWrapper =
new WebViewAuthDialogWrapper(webView);
pageWrapper.setAppId("App Id goes here");
pageWrapper.setAppSecret("App Secret goes here");
pageWrapper.setRedirectUri("Redirect Uri goes here");
pageWrapper.setPermissions(new String[] {Permission.OFFLINE_ACCESS, Permission.PUBLISH_STREAM});
pageWrapper.addAuthenticationListener(this);
pageWrapper.login();
...
Besides the release package, there is also a sample app demonstrating how to implement the authentication process for this platform. Here it goes the download link.
I hope you guys enjoy it.
See you in the next post...
3 comments:
it's not easy to understand can you tell me how can i start for it....
Did you read this tutorial http://j2megroup.blogspot.com/2011/06/facebook-api-me-10-tutorial.html ? If not, please do it. After that, download the sample app and you will understand.
Superb. I really enjoyed very much with this article here. Really it is an amazing article I had ever read. I hope it will help a lot for all. Thank you so much for this amazing posts and please keep update like this excellent article. thank you for sharing such a great blog with us.
apple iphone service center in chennai | apple ipad service center in chennai | apple iphone service center in chennai | | Mac service center in chennai
Post a Comment