二,把解壓好的資料夾中(文件裡的facebooksdk)的FacebookSDKResources.bundle直接拖曳進你的專案。(選項選'Create groups for any added folders' and deselect 'Copy items into destination group's folder (if needed)')


三,在iOS6中,facebookSDK還要用到AdSupport, Accounts, libsqlite3, Security and Social這五個Frameworks.(如果你要build在舊版iOS,記得把不支援的Framework設為Optional)
四,上述動作作好之後,你的Project看起來會像下圖

五,把申請好的Facebook app ID,加入下列二個地方,你就可以開始coding了!
- 在.plist中加入FacebookAppID跟FacebookDisplayName,把他的值設好,在fb app設定頁面中都可以找的到你得輸入的值。
- 打開URL types,把URL Schemes的item0設為開頭為fb,後面加你的Facebook App ID。
沒有留言:
張貼留言