简体   繁体   English

在Android应用程序中使用Facebook SDK

[英]Using Facebook SDK in Android application

I am trying to let the user post to his Facebook wall. 我试图让用户张贴到他的Facebook墙上。 For that, I have downloaded the Facebook SDK for Android and copied the official code from Facebook to call the request method. 为此,我下载了适用于Android的Facebook SDK,并从Facebook复制了官方代码以调用request方法。 The problem is that my SDK states that the .request method has been deprecated. 问题是我的SDK指出.request方法已被弃用。 I found that there are several SDKs around and I cannot find a whole set (SDK + sample code) that work for me. 我发现周围有几个SDK,找不到适合我的整套工具(SDK +示例代码)。 Can someone point to a full working set of instructions on where the get all of these? 有人可以指出所有这些方面的完整工作说明吗?

Thanks, Simon 谢谢西蒙

I have make a simple program that you have to login and then you can post status to your wall. 我做了一个简单的程序,您必须先登录,然后才能将状态发布到墙上。 with or without dialog box. 有或没有对话框。
android project link android项目链接

facebook APi link facebook APi 链接

First you have to create an project with sample source ( com_facebook_android) and then import it in you android project. 首先,您必须使用示例源(com_facebook_android)创建一个项目,然后将其导入您的android项目中。 and it will work 它会工作

Cheers 干杯

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM