akkaweb / akka-cakephp-facebook-plugin Goto Github PK
View Code? Open in Web Editor NEWCakePHP 3 Facebook Plugin
CakePHP 3 Facebook Plugin
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
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.
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 ?
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;
}
Connection timed out after 10001 milliseconds
Facebook\FacebookSDKException
@akkaweb
I have manually downloaded facebook sdk and added the files into vendor/facebook/php-sdk-v4 in cake3.
Can you help me with that?
I am getting redirected back to facebook , after landing to callback url .
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.
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?
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']
]
],
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?
I am getting the below error in cakephp3.
AkkaFacebook.GraphComponent could not be found. Plugin path is project_title/plugins/AkkaFacebook.
Thanks in advance.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.