简体   繁体   English

如何将Facebook api集成到任何android应用程序中?

[英]How can i integrate Facebook api in any android application?

What's the procedure to run Facebook Connect application in android? 在Android中运行Facebook Connect应用程序的过程是什么? Here is the link: http://code.google.com/p/fbconnect-android/ 这是链接: http : //code.google.com/p/fbconnect-android/

Please explain step by step. 请逐步说明。 I'm having errors in my manifest file: 我的清单文件中有错误:

<activity android:name="com.codecarpet.fbconnect.FBLoginActivity"
            android:theme="@android:style/Theme.Translucent.NoTitleBar"/>
        <activity android:name="com.codecarpet.fbconnect.FBPermissionActivity"
            android:theme="@android:style/Theme.Translucent.NoTitleBar"/>
        <activity android:name="com.codecarpet.fbconnect.FBFeedActivity"
            android:theme="@android:style/Theme.Translucent.NoTitleBar"/>

Don't integrate Facebook API from mobile. 不要从移动设备集成Facebook API。

Instead you should create your own web service and put somewhere on the web where you can update API changes more frequently than rolling out new mobile version of your app for each API changes. 相反,您应该创建自己的Web服务,并将其放置在Web上的某个位置,以便比对每个API更改推出新的移动版本的应用程序更频繁地更新API更改。 So the point here is that you keep API calls on the webserver where you can do immediate changes rather than pushing mobile updates through time consuming Markets approval. 因此,这里的要点是将API调用保留在网络服务器上,您可以在其中进行即时更改,而不是通过耗时的Markets批准来推送移动更新。

Make that go (1) Android phone -> (2) your webserver file with Facebook API --> (3) Facebook Servers. 做到这一点(1)Android手机->(2)使用Facebook API的Web服务器文件->(3)Facebook Server。 You can find more examples working with Facebook API such as using PHP. 您可以找到更多使用Facebook API的示例,例如使用PHP。

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

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