Git Product home page Git Product logo

facebook's Introduction

Facebook

Appcelerator Titanium module wrapping the latest version of the Facebook iOS SDK. Based upon the work of Appcelerator and MokeSmokes.

The goal for this module is to support the complete and latest version of the Facebook SDK for iOS (and later Android).

Quick Start

Get it gitTio

Download the latest ZIP-file and consult the Titanium Documentation on how install it, or simply use the gitTio CLI:

$ gittio install rebel.facebook

Documentation

Documentation for this module can be found in the documentation folder

Changelog

  • 1.0.10 Added support for 64-bit
  • 1.0.9 Upgraded Facebook SDK to 3.20, to support the new Graph API 2.2
  • 1.0.8 Prevented FB Framework to be added to the final app, increasing size by 26mb. Also added messageLink function to send a link via Messenger.
  • 1.0.7 Added some missing properties to the Like button
  • 1.0.6 Added support for the new native Like button
  • 1.0.5 Fixed minor issue with applicationDidBecameActive not being fired and session tokens might not correctly renew because of that. Also the app event was not logged.
  • 1.0.4 Added support for Login button, rewrote internal structure and re-added login/logout events
  • 1.0.2 Support for first Graph API call and Share Dialog
  • 1.0.1 Support for App Events
  • 1.0.0 Initial working version with only Facebook login

Author

Timan Rebel

License

The MIT License (MIT)

Copyright (c) 2014 Timan Rebel

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

facebook's People

Contributors

timanrebel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

morefun0302

facebook's Issues

Pull Profile Image

Hello,

I am trying to pull the user profile picture but with no luck.

I tried

var facebook=require(rebel.facebook)

and after login, I tried these two options:

facebook.requestWithGraphPath"/me",params,'GET',function(e){
    Ti.API.info("http://graph.facebook.com/"+e.result.id+"/picture");
});

which gave a javascript error
and:

facebook.me(function(e){
    Ti.API.info("http://graph.facebook.com/"+e.result.id+"/picture");
});

This one gave an error on the result. If I just trace "e", it contains the user id and the full name only, not even the email.

Can you please point out if these options are available and which function to use.

Login doesn't work

Hi,

i'm trying to get the login working - without success at the moment.

Calling authorize opens the facebook app, show me everything correctly ... after clicking on the "accept" button to allow the facebook app the user returns into my test app and nothing happen.

Neither the function from authorize is called or the login listener. Any idea? Is there something that i'm missing?

Facebook.addEventListener('login', onLogin);
Facebook.authorize(['public_profile', 'email'], function(fbEvent) {

    console.log(fbEvent);

     if (fbEvent.success) {
     console.log(fbEvent.accessTokenData);
     facebook.requestNewPublishPermissions(['publish_actions'], facebook.audienceFriends, function(writeEvt) {
     console.log(writeEvt);
     });
     } else if (fbEvent.cancelled) {
     console.log("Canceled");

     } else if (fbEvent.error) {
     console.log("error");
     }
});

}

function onLogin(e){
console.log(e);
alert("login");
}

Best,
Nico

Reference documentation

Create a reference documentation, describing all methods, properties, events, etc. Preferably in markdown so we can publish it to Github

Getting error during Build

i had used latest 2 release of your facebook module but receiving same error during build

error using Ti SDK 3.5
[INFO] : Invoking xcodebuild
[ERROR] : ** BUILD FAILED **
[ERROR] : The following build commands failed:
[ERROR] : Ld build/Project.build/Debug-iphoneos/Project-universal.build/Objects-normal/arm64/Project normal arm64
[ERROR] : Ld build/Project.build/Debug-iphoneos/Project-universal.build/Objects-normal/armv7/Project normal armv7
[ERROR] : (2 failures)

and error using Ti SDK 3.4.1 & 3.4.0
[INFO] : Invoking xcodebuild
[ERROR] : ** BUILD FAILED **
[ERROR] : The following build commands failed:
[ERROR] : Ld build/Debug-iphoneos/Project.app/Project normal armv7
[ERROR] : (1 failure)

and i had also tested build from xcode 6.1.1 too and found that it is not able to find FaceBook Framework on it

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.