Giter Site home page Giter Site logo

apportablefacebooksdk's Introduction

ApportableFacebookSDK

FacebookSDK for the Apportable platform -- available from https://github.com/apportable/ApportableFacebookSDK

  • This will integrate with the Apportable implementation of the Accounts framework (if that framework is present in your Apportable SDK). This primarily allows login through the installed Facebook app.

  • Integrates ApportableWebViewController as a git subtree (https://github.com/apportable/ApportableWebViewController). This is an Android WebView/Dialog backing for FBSession and FBDialog.

    • For session login, it is used in the case where the Facebook App is not installed on device and/or the Accounts framework is not available in the Apportable SDK)
    • You may elect to not use this, in which case the fallback is to go through the device browser/Chrome

Integrating with your Xcode project

  • First remove the original FacebookSDK.framework from your project

    • Remove it from the Frameworks group/directory in your Project Navigator (left pane of Xcode)
    • Remove it from the linking phase in Project > Build Phases > Link Binary With Libraries
    • Also you should remove any Frameworks Search Paths in the Build Settings of the main project target(s) that reference the FacebookSDK
    • When in doubt, git grep from the Terminal to see if there are any other FacebookSDK references in the project...
  • From the Mac Finder, drag-n-drop this FacebookSDK.xcodeproj into your Xcode Project Navigator. NOTE: make sure this FacebookSDK.xcodeproj is not open in another Xcode window when you do this!

    • Add libFacebookSDK.a to the linking phase in your Project > Build Phases > Link Binary With Libraries
    • Add FacebookSDK as a target in your Project > Build Phases > Target Dependencies
  • Public headers should be visible to your project after the first build in Xcode

Building with Apportable from the Terminal

  • Run 'apportable --generate load' from the Terminal in the directory where YourProject.xcodeproj/ directory is to compile and load on your Android device

  • If the initial build has errors, you may need to manually add the "ApportableFacebookSDK/include" directory to the YourProject.approj/configuration.json , add_params { header_paths [ ... ] } configuration section. For example:

      ...
      "add_params": {
          ...
          "header_paths": [
              "ApportableFacebookSDK/include",
              ... ,
          ]
          ...
      }
    

More Apportable documentation

Notes on divergences from FacebookSDK

  • Code divergences from canonical FacebookSDK are #ifdef APPORTABLE or #ifdef ANDROID

  • Directory/file layout diverges from canonical FacebookSDK due to originally integrating this with our internal build system. This probably should be fixed at some point (possibly by you!). Consider contributing to development by sending us a pull request through Github =)

apportablefacebooksdk's People

Contributors

glenna avatar ktyan avatar mauiaaron avatar nicoles avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.