GithubHelp home page GithubHelp logo

phanan / vue-facebook-signin-button Goto Github PK

View Code? Open in Web Editor NEW
137.0 137.0 30.0 167 KB

A simple plugin to include a custom Facebook sign-in button into your web app.

JavaScript 100.00%
javascript plugin vue

vue-facebook-signin-button's People

Contributors

phanan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

vue-facebook-signin-button's Issues

Cannot read property 'init' of undefined at window.fbAsyncInit

was including in created hook for asynchronous flow

when included error occurs Cannot read property 'init' of undefined
at window.fbAsyncInit

window.fbAsyncInit = function() {
FB.init({
appId : '{your-app-id}',
cookie : true, // enable cookies to allow the server to access the session
xfbml : true, // parse social plugins on this page
version : 'v2.8' // use graph api version 2.8
});
};
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/sdk.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));

Uncaught TypeError: Cannot read property 'login' of undefined at HTMLDivElement.eval

Kept getting this error any idea why?
vue fb

<fb-signin-button class="btn btn-default btn-big btn-big--facebook btn-big--with-logo" :class="{ 'is-loading': isLoading }" :params="fbPluginParams" @success="fbLoginSuccess" @error="fbLoginError"> <!-- <i class="fab fa-facebook"></i> --> <bouncing-loader v-if="isLoading"></bouncing-loader> <span class="span-fb" v-else> {{ facebookLogText }} </span> </fb-signin-button>

Response FB

its the data what we get its only name and id? how if i want to get more data like email, phone number, birthday etc. is it possible?

Vue TS Cannot find name 'FB'.

Hey
Great plugin. I have used it on an older project!
I have a issue when doing a 'build' my Vue project.

I get "ERROR in /Users/Zac/.../RegisterUser.vue Cannot find name 'FB'. "

The thing is the plugin actually works, even though I get this error on my console & this ERROR is what is stopping my from compile/build.

The FB.Init on my index.html works fine with no errors, but when inside 'RegisterUser.vue', it says FB cant be found.

Do you have any suggestions on how I could get rid of this error?
This is a Vue typescript 3.1.3 project.

Thanks in advance!

Really dumb question - where does the window.fbAsyncInit goes

Does this script goes to the vue's index.js file? is it loaded in index.html
window.fbAsyncInit = function() {
FB.init({
appId : '{your-app-id}',
cookie : true, // enable cookies to allow the server to access the session
xfbml : true, // parse social plugins on this page
version : 'v2.8' // use graph api version 2.8
});
};
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/sdk.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));

The button is not clickable

I've added the library to the project. I've done all the steps but Sign in with Facebook button is not clickable. What would be the problem?

pwa problem

I know it is not the problem with phanan plugin, but it is happening when I am
using nuxt pwa module, manifest display standalone mode
ios seems like not redirect when user success to login facebook, and occurs empty confirm page.
otherwise, it works in safari browser and google chrome browser
Found lots of problems, it was broken with pwa:(
please do not close this issues. and hope everyone see it if they have same problem.
wait for help

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.