使用xcode 4实现Facebook Connect for iPhone [英] Implementing Facebook Connect for iPhone using xcode 4

查看:143
本文介绍了使用xcode 4实现Facebook Connect for iPhone的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法让Facebook Connect正常工作。我(尝试)按照 http://上的说明进行操作www.mobisoftinfotech.com/blog/iphone/iphone-fbconnect-facebook-connect-tutorial/ 但似乎是早期版本的xcode。这是我正在采取的步骤。

I'm having trouble getting Facebook Connect working. I (attempt) to follow the instructions located at http://www.mobisoftinfotech.com/blog/iphone/iphone-fbconnect-facebook-connect-tutorial/ but it seems to be for earlier versions of xcode. Here are the steps I'm taking.


  • 创建一个新的基于视图的应用程序

  • 链接

  • 复制FBxxxx .h文件从src文件夹里面的FBConnect文件夹进入我的项目目录

  • 在我的xcode项目下创建一个名为FBConnect的新组

  • 对了单击添加新文件并选择已在我的项目中的文件

  • 完成创建应用程序并编写示例代码的页面上的其余步骤

  • Create a new View Based App
  • Download the SDK from their link
  • Copy the FBxxxx.h files from the FBConnect folder inside of the src folder into my projects directory
  • Create a new group named FBConnect under my project in xcode
  • right click add new files and select the files that are already within my project
  • go through the rest of the steps on the page creating an application and writing the example code

似乎我已经将所有内容设置正确,然后在构建项目时遇到跟随错误。

It seems that I've set everything up correct then I get the follow error when I build my project.

Undefined symbols for architecture i386:
  "_OBJC_CLASS_$_FBSession", referenced from:
      objc-class-ref in JetPackViewController.o
  "_OBJC_CLASS_$_FBLoginButton", referenced from:
      objc-class-ref in JetPackViewController.o
  "_OBJC_CLASS_$_FBRequest", referenced from:
      objc-class-ref in JetPackViewController.o
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status

我认为这与我如何将文件导入项目有关。那么我该如何解决这个问题或者我做错了什么?

I'm assuming this has something to do with how I am importing the files into my project. So how do I fix this or what am I doing wrong?

推荐答案

Facebook Connect SDK已被弃用。从Github下载 Facebook iOS SDK 。它附带一个工作示例,您需要做的就是在两个地方替换您的appId。如果您遇到将其升级到Xcode 4的问题,请参阅升级指南

The Facebook Connect SDK has been deprecated. Pull down the Facebook iOS SDK from Github. It comes with a working example and all you need to do is replace your appId in two places. If you run into issues upgrading it to Xcode 4, see this guide on upgrading.

这篇关于使用xcode 4实现Facebook Connect for iPhone的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆