如何整合facebook api

问题描述:

我已经创建了一个应用程序,并将其与Facebook进行了整合。如何整合facebook api

的问题是有命名实施例中的Facebook包中的类文件,并将其与名为FB xml文件相关联,但数据不能从它显示错误fb.xml作为

setContentView(R.layout.fb); 
      mLoginButton = (LoginButton) findViewById(R.id.login); 
      mText = (TextView) Example.this.findViewById(R.id.txt); 
//   mRequestButton = (Button) findViewById(R.id.requestButton); 
      mPostButton = (Button) findViewById(R.id.postButton); 
      mDeleteButton = (Button) findViewById(R.id.deletePostButton); 

任何检索到的想法如何解决这个问题?

尝试检查按钮是否为空。如果是这样,他们不能在XML中找到。这意味着你的XML包含错误。什么是错误日志?