inspiration from meteor-accounts-facebook-cordova (andrewreedy)
This packages replaces the accounts-facebook package. It works with phonegap-facebook-plugin when using cordova and falls back to the facebook package when in a browser.
Note: Currently only tested with android. Will test the other platforms asap.
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.
================
================
Meteor 0.9.0 and up
meteor add particle4dev:cordova-fb
Note: For testing you can also add accounts-ui package.
================
{
"cordova": {
"APP_ID": "1082178381799216",
"APP_NAME": "jerry-stories-test1",
"secret": "dfc9aaabbe537b25c752b91ddcb07348"
},
"permissions": [
"public_profile",
"user_interests",
"user_activities",
"user_photos",
"read_friendlists",
"user_friends",
"email"
],
"profileFields": [
"id",
"name",
"gender",
"location",
"email",
"first_name",
"last_name",
"link",
"username",
"locale",
"age_range"
]
}
production.json
{
"environment": "production"
}
meteor run --settings production.json
OR
development.json
{
"environment": "development"
}
meteor run --settings development.json
================
- CFB.getLoginStatus(client only)
- CFB.loginCodova(client only)
- CFB.shareFeed(client only)
- CFB.share(client only)
- The Graph API (incomplete)
- CFB.getIdentity(server only)
- CFB.getProfilePicture(server only)
- The Graph API (incomplete)
Refer to the phonegap-facebook-plugin readme
meteor run android-device -p 192.168.1.103:3000 --verbose --settings settings.json
mrt --settings settings.json
================
https://github.com/particle4dev/meteor-cordova-facebook-login
If you want more features than this provides, file an issue. Feature requests/contributions are welcome.