Skip to content

andiradulescu/facebook-ios-sdk

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

89 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DEPRECATED

This is a fork of facebook-ios-sdk.

The original facebook-ios-sdk can be found here.

I created this fork in order to make facebook-ios-sdk work with the latest SBJson and gdata-objectivec-client.

This could prove useful to you if you tried to use both the facebook-ios-sdk and gdata-objectivec-client. Both projects have an implementation of SBJson inside, and you get a "duplicate symbol" when you try to build the project.

The solution is the removal of SBJson files from both facebook-ios-sdk and gdata-objectivec-client and the addition of the latest SBJson library.

Common error: "ld: duplicate symbol OBJC_METACLASS$_SBJSON in ..."

Facebook iOS SDK

This open source iOS library allows you to integrate Facebook into your iOS application include iPhone, iPad and iPod touch.

Except as otherwise noted, the Facebook iOS SDK is licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.html)

Getting Started

See our iOS Tutorial for a tutorial to get you up and running.

See our iOS SDK Reference for more information on the SDK methods and protocols.

Sample Applications

This SDK comes with a sample application that demonstrates authorization, making API calls, and invoking a dialog, to guide you in development.

To build and run the sample application with Xcode:

  • Open the included Xcode Project File by selecting File->Open... and selecting sample/Hackbook/Hackbook.xcodeproj.

  • Verify your compiler settings by checking the menu items under Project->Set Active SDK and Project->Set Active Executable. For most developers, the defaults should be OK. Note that if you compile against a version of the iOS SDK that does not support multitasking, not all features of the Facebook SDK may be available. See the "Debugging" section below for more information.

  • Finally, select Build->Build and Run. This should compile the application and launch it.

Debugging

Common problems and solutions:

  • What version of the iOS SDK must I compile my application against to use single sign-on?

Single sign-on is available for apps built on version of iOS that support multitasking (generall v4.0 and higher--see Apple documentation for more information). Others applications will fall back to inline dialog-based authorization.

  • What version of the Facebook Application must a user have installed to use single sign-on?

The Facebook Application version 3.2.3 or higher will support single sign-on. Users with older versions will gracefully fall back to inline dialog-based authorization.

  • During single sign-on, the Facebook application isn't redirecting back to my application after a user authorizes it. What's wrong?

Make sure you've edited your application's .plist file properly, so that your applicaition binds to the fb[appId]:// URL scheme (where "[appId]" is your Facebook application ID).

  • After upgrading to Xcode 4 the sample app will not build and I get the following error: [BEROR]No architectures to compile for (ARCHS=i386, VALID_ARCHS=armv7 armv6). What should I do?

Edit your build settings and add i386 to the list of valid architectures for the app. Click the project icon in the project navigator, select the Hackbook project, Build Settings tab, Architecture section, Valid Architectures option. Then click the grey arrow to expand, and double-click on right of Debug. After "armv6 armv7" add "i386".

About

Facebook SDK for iOS - tweaked to work with latest SBJson from https://github.com/stig/json-framework

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 99.2%
  • C++ 0.8%