Coder Social home page Coder Social logo

akka-cakephp-facebook-plugin's People

Contributors

akkaweb avatar gbalabasquer avatar hkosmidi avatar kaffineaddict avatar

Stargazers

 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  avatar

akka-cakephp-facebook-plugin's Issues

loginButton

Hi,
thanks for the great plugin.

echo $this->Facebook->loginLink($options = []);

works perfect out of the box.
But

echo $this->Facebook->loginButton($options = []);

just makes popup very fast "something" and it doesn't happen any more.

Regards, Martin

New User Creation

Thank you for this plugin which is easy to configure and simple to use.

I have a question regarding new User creation when the Facebook.id doesn't match an existing User. I can see that a new password is generated for the User which is randomly generated. How can the User know what the password is, or is a password stored to simply satisfy the User model validation with the ideas being that the User should be able to edit the password if desired?

Further, is it possible to detect when a new User has been created. It would be nice to confirm that a new account has been created/registered (email confirmation to new User) as opposed to a regular login which might just require a flash message.

Thank you in advance.

akkaweb/cakephp-facebook dev-master requires cakephp/cakephp 3.0.x-dev

I am getting this error:

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - akkaweb/cakephp-facebook dev-master requires cakephp/cakephp 3.0.x-dev -> satisfiable by cakephp/cakephp[3.0.x-dev].
    - akkaweb/cakephp-facebook dev-master requires cakephp/cakephp 3.0.x-dev -> satisfiable by cakephp/cakephp[3.0.x-dev].
    - Conclusion: don't install cakephp/cakephp 3.0.x-dev
    - Installation request for akkaweb/cakephp-facebook dev-master -> satisfiable by akkaweb/cakephp-facebook[dev-master].

My composer.json has:

"cakephp/cakephp": "~3.0",

Change composer.json to cakephp ~3.0 instead of 3.0.x-dev ?

username column name hardcoded in GraphComponent.php line 414

The 'username' in the where clause should be replaced by the one specified in the config when the component is loaded at runtime.

protected function __generateUsername()
    {
    $username = strtolower($this->FacebookFirstName . $this->FacebookLastName);

    while ($this->Users->find()->where(['username' => $username])->first()) {
        $username = $username . rand(0, 900);
    }

    return $username;
    }

Integration tests are failing due to Facebook's session checker

Trying to run tests with this plugin installed will throw the exception: Session not active, could not store state. Occasionally it'll throw: Session not active, could not load state. Both of these exceptions are being thrown from Facebook's PHP SDK, which requires an active session when setting a FBRLH object.

In the component, the FBRLH object is set in beforeFilter(), meaning each test is going to throw Facebook's session exceptions. This can be solved by setting the FBRLH object in initialize() and then calling Facebook's disableSessionStatusCheck() if the app is being accessed via CLI.

Facebook Login Link is not a button

When I use the Facebook login link, I just get a plaintext link to login to Facebook, it is supposed to be a button. How do I make it a button?

Fields are empty

Hi,

First of all, your plugins looks awesome,

I'm having issue to make it works ! I tried to use the facebook Login functionnality, i have installed it by Composer and added the following code in AppController.php :

The plugin seems to works, the session is created but in my users table, the fields first_name, last_name, email and username are empty. I can get the password and the facebook_id.

Is there anything speciail i have to do in my facebook application ?

Thanks.

loadComponent('AkkaFacebook.Graph', [ 'app_id' => 'i have put the app id here', 'app_secret' => 'same thing', 'app_scope' => 'email', // https://developers.facebook.com/docs/facebook-login/permissions/v2.3 'redirect_url' => Router::url(['controller' => 'Users', 'action' => 'login'], TRUE), // This should be enabled by default 'post_login_redirect' => '' //ie. Router::url(['controller' => 'Users', 'action' => 'account'], TRUE) // 'user_columns' => ['first_name' => 'fname', 'last_name' => 'lname', 'username' => 'uname', 'password' => 'pass'] //not required ]); } ``` ?>

The authentification is made in my system through the email field instead of the username field, but i have created the username field in case in the table.

'authenticate' => [
'Form' => [
'fields' => ['username' => 'email']
]
],

Call to a member function getLoginUrl()

I am trying to use your plugin for showing comments on my site.

But I get:
Fatal Error (1): Call to a member function getLoginUrl() on a non-object in [\vendor\akkaweb\cakephp-facebook\src\Controller\Component\GraphComponent.php, line 351] .

And as I searched there is no such function in Helper. Am I doing something wrong?

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.