简体   繁体   English

Android Facebook SDK 3.0与应用程序集成以在墙上发布

[英]Android Facebook SDK 3.0 Integration with application to Post on Wall

In Android project trying to have a button to post on wall in facebook by user. 在Android项目中,试图让用户将按钮张贴在Facebook的墙上。 When that button is clicked need to check whether user is already logged in using other facebook app if so i need to open Post On Wall Dialog with prefilled data to be shared. 单击该按钮时,需要检查用户是否已经使用其他Facebook应用程序登录,如果需要,则需要打开要共享的预填充数据的“在墙上对话框”。 Please direct me in this to achieve. 请为此指导我。

I tried following this tutorial http://www.integratingstuff.com/2010/10/14/integrating-facebook-into-an-android-application/ but after asking for user credentials in a webview the page navigates to main activity instead of opening the post on wall dialog. 我尝试按照本教程http://www.integratingstuff.com/2010/10/14/integrating-facebook-into-an-android-application/进行操作,但是在网络视图中请求用户凭据后,页面导航到主要活动,而不是在墙上对话框中打开帖子。 Thanks in advance. 提前致谢。

Have you tried using the Facebook SDK website? 您是否尝试过使用Facebook SDK网站? Try looking at the below two links on the Facebook SDK website: 尝试查看Facebook SDK网站上的以下两个链接:

How to log in: http://developers.facebook.com/docs/howtos/androidsdk/3.0/login-with-facebook/ 如何登录: http : //developers.facebook.com/docs/howtos/androidsdk/3.0/login-with-facebook/

How to publish to a feed: http://developers.facebook.com/docs/howtos/androidsdk/3.0/publish-to-feed/ 如何发布到供稿: http : //developers.facebook.com/docs/howtos/androidsdk/3.0/publish-to-feed/

There is also an example application provided with the Facebook SDK 3.0 which can be loaded into eclpise and onto a device for you to better understand how it works (need to add your own APP key of course). Facebook SDK 3.0还提供了一个示例应用程序,可以将其加载到eclpise中并加载到设备上,以使您更好地了解其工作原理(当然需要添加自己的APP密钥)。 There is also the Scrumptious Tutorial on the Facebook SDK site that can run you through everything. Facebook SDK网站上也提供了Scrumptious教程,可以指导您完成所有操作。 Found here: http://developers.facebook.com/docs/tutorials/androidsdk/3.0/scrumptious/ 在这里找到: http : //developers.facebook.com/docs/tutorials/androidsdk/3.0/scrumptious/

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

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