Skip to content

heysailor/meteor-accounts-facebook-cordova

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Accounts Facebook Cordova

Join the chat at https://gitter.im/buildhybrid/platform

** this package is an upgrade to mrt:accounts-facebook-cordova (https://atmospherejs.com/mrt/accounts-facebook-cordova) and it implements Facebook SDK 4 + API 2.4

This packages replaces the accounts-facebook package. It works with cordova-plugin-facebook4 when using cordova and falls back to the facebook package when in a browser.

...

Platforms Tested

  • iOS
  • Android

Current status: Login works great! Working on abstracting the graph api calls so they work from both native sdk or http request .. although it may be better to just stick with http.

Installation / Setup

Requirements

================

Package Installation
meteor add heysailor:accounts-facebook-cordova

Note: For testing you can also add accounts-ui package.

You must install the facebookConnect cordova plugin - on meteor, add to ./meteor/cordova-plugins:

cordova-plugin-facebook4@1.6.1

Then in ./meteor/mobile-config:

App.configurePlugin('cordova-plugin-facebook4', {
  APP_ID: 'XXX',
  APP_NAME: 'XXX'
});

================

Meteor settings file (settings.json)
{
  "facebook": {
    "appId": "[app_id]",
    "secret": "[app_secret]"
  },
  "public": {
    "facebook": {
      "permissions": [
        "basic_info",
        "user_interests",
        "user_activities",
        "read_friendlists"
      ],
      "profileFields": [
        "name",
        "gender",
        "location"
      ]   
    }
  }
}

================

Cordova Setup Guide

Refer to the phonegap-facebook-plugin readme

Final Notes

Running your app with settings
meteor --settings settings.json

================

If you want more features than this provides, file an issue. Feature requests/contributions are welcome.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •