Giter Site home page Giter Site logo

nativescript-facebook-vue-example's Introduction

nativescript-facebook-vue-example

Nativescript-facebook plugin with nativescript-vue example

npm install -s nativescript-facebook

Required!

npm run clean

And then:

import * as Facebook from "nativescript-facebook";

In created:

Facebook.init('APP_ID');

And use method:

Facebook.login((err, fbData) => { });

Example Home.vue from vue-cli-template

nativescript-facebook-vue-example's People

Contributors

alexpalchikovskiy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

nativescript-facebook-vue-example's Issues

The plugin could not find the android library

Hello,

I've been trying to setup facebook login like in the example for android, but I get the following errors:

JS: 'nativescript-facebook: The plugin could not find the android library, try to clean the android platform'
JS: [Vue warn]: Error in created hook: "Error: The SDK has not been initialized, make sure to call FacebookSdk.sdkInitialize() first.

So I had to dive in the code of nativescript-facebook to see where the error happens and it is here: https://github.com/NativeScript/nativescript-facebook/blob/2437e17b9aa71396a679335408c03011ef687bfa/src/login-manager.android.ts#L27

When logging in the console the "e" variable containing the error, I get:

TypeError: Cannot read property 'getApplicationContext' of undefined

Not Logged In: You are not logged in. Please login and try again

I keep getting an error message "Not Logged In: You are not logged in. Please login and try again" and I think it's related to the Client OAuth Settings in the Facebook App Dashboard, could you post how you configured yours?

Do you setup the application as Android/iOS or as Web? This may be a good step to add to instructions

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.