Giter Site home page Giter Site logo

social-plugin's Introduction

Hi there 👋

  • 💻 I’m a fullstack developer (web, mobile & voice) who works full-time as a freelancer.

  • 🌏 I’m based out of Bangalore, India and I usually work out of home or coffee shops.

  • 🎤 I occasionally conduct workshops and give technical talks on invite as seen here, here & here.

  • ✉️ To reach out to me, you can drop an email to [email protected] or find me from the social links below.

Mohsin's Github Stats

Languages and Tools

android kotlin laravel php octobercms alexa-skills-kit google-actions mariadb sqlite swift firebase gcp html5 css3 vuejs java c cplusplus

Connect with me

linkedin linkedin stackoverflow quora devto telegram sessionize

social-plugin's People

Contributors

mohsin avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

dheia

social-plugin's Issues

The Facebook login button does not redirect

I use the Facebook login button and it works well. But after the user chooses their Facebook name / account to enter, they are not transferred to the page specified in the Redirect URI OAuth Valid. The address after they sign in changes like this: https://nickgenom.com/signin#_=_

[Issue created by EndiHariadi: 2020-07-31]
[Last updated on bitbucket: 2020-08-02]

[Comment created by SaifurRahmanMohsin: 2020-08-02]
It is blocked because in the facebook settings this URL is not listed as valid OAuth redirects. You need to set that.

  1. You have to drag the Facebook login component into your /masuk page so that it appears wherever you want it to appear. Click on the component and then select the profile page from the dropdown as the redirect.
  2. Next, you have to open your /profil-pengguna page and with the page open, click on the Facebook login component without dragging. This will include the component’s underlying code on that page without adding the button component.
  3. Now include the URL of the profil-pengguna page into Facebook’s App dashboard i.e. in step 3 from my previous comment (Facebook Login > Valid OAuth Redirect URIs).

The app should work fine now.

[Comment created by EndiHariadi: 2020-08-01]

  1. Thank you Mohsin for your prompt reply. I have followed your instructions. And now I can login. If you don't mind you try to see the link https://nickgenom.com/masuk. Now I want users to be redirected to the user's profile page (https://nickgenom.com/profil-pengguna) after they have successfully logged in. How to achieve that?
  2. I have tried to redirect to the user profile page like this picture http://prntscr.com/tsbti5 and failed (URL blocked)

[Comment created by SaifurRahmanMohsin: 2020-08-01]
This is because you have not added your website login redirect URL to the Facebook dashboard.

If you are using this Facebook button at https://nickgenom.com/masuk then you need to first click on the COMPONENT and then select Redirect to as your redirected web page.


After that, you need to visit Facebook’s App settings page and add this URL https://nickgenom.com/masuk to the following locations:

  1. Settings > Basic > App Domains

  2. Settings > Basic > Website


3. Facebook Login > Valid OAuth Redirect URIs


If you do this, then the error will disappear and it will work as expected.

Up to date with FB API?

Is this plugin updated with the latest FB API?
does it take in account the phone login possibility?

[Issue created by chrisvidal: 2019-11-15]

[Comment created by SaifurRahmanMohsin: 2019-11-15]
Hello Chris. Thank you for reaching out to me and considering to purchase this plugin. The plugin isn't on the latest Facebook's API nor does it need to be. It uses a mechanism called OAuth2 which is standardized across various platforms and that (login) part of facebook API has not been revised for a very long time as there are too many web apps that use login. I update this plugin periodically so that the login works as intended and also provide support to any users that may come across bugs (you can see the closed issues for samples).

The plugin was last updated on 20th of July this year to the most latest OAuth spec of facebook which is sufficient. I will not be keeping this plugin in sync with the latest graph version which doesn't make sense nor is it useful.

As for phone login... you are misunderstanding on how the plugin's login process works. The user can login in any manner using phone or email--it doesn't matter. In fact, facebook could add a new login mechanism (say Face ID or fingerprint unlock on their login) and my plugin will still be compatible as it uses OAuth2 to check if a user is already logged into facebook (if not redirect to the standard facebook login page which shows phone/email) and then once it's logged in fetches the user's details.

If you purchase this plugin and follow the steps mentioned in the description/documentation things will work out fine. However, if you do face an issue and need help please feel free to take screenshots and make a new issue request here and I'll get back to you within a week with a fix.

Class name is not registered for the component "localePicker"

I've installed the octoberCMS and then this plugin and the front end is now failing with the following error. Is this the appropriate place to request support for the paid version of this plugin?

Class name is not registered for the component "localePicker". Check the component plugin.
/home/dashboardclimb/public_html/modules/cms/classes/ComponentManager.php line 200

[Issue created by null: 2019-05-07]

[Comment created by SaifurRahmanMohsin: 2019-05-07]
Hi. Yes this is indeed the correct place to request support for this plugin. My apologies that it took a while to get back. However, from the error message you shared it is evident that the error comes from localePicker component which is part of another plugin (RainLab’s Translate if I’m not mistaken). This plugin contains 5 components for each social provider it supports: Facebook, Github, Microsoft, Google and LinkedIn. However it does not have a component called localePicker. Please verify and if you do have any bugs related to this plugin, please reach out to me. I will help ASAP.

Facebook stopped working - OAuthException: (#200) Missing Permissions

Just a heads up about the Facebook signin that stopped working.

The logs show the error: OAuthException: (#200) Missing Permissions

You might need to update the oauth2-facebook vendor when they fix this issue

thephpleague/oauth2-facebook#55

In the meanwhile I applied a fix directly to the vendor so the Facebook so it doenst stay broken.

[Issue created by bernardotavares: 2020-07-18]
[Last updated on bitbucket: 2020-08-01]

[Comment created by SaifurRahmanMohsin: 2020-08-01]
Bump facebook version

Updated the facebook provider. Closes #10

→ <>

[Comment created by SaifurRahmanMohsin: 2020-07-18]
Thanks for bringing it up. I will patch this up tonight.

getParameter must be of the type string, null given

Hello,

This error started happening after updating the OctoberCMS to build 468 (error trace attached).
I also did composer update.

“Type error: Argument 1 passed to Cms\Classes\Router::getParameter() must be of the type string, null given, called in /modules/cms/classes/Controller.php on line 1401”

The trace brings up this plugin and if I remove the social-plugin components from this login page, there is no error.

As a temporary solution, I discovered that everything runs smothly if I put a (string) in this function in Account.php component from rainlab/users.


[Issue created by bernardotavares: 2020-09-09]
[Last updated on bitbucket: 2020-09-12]

[Comment created by SaifurRahmanMohsin: 2020-09-12]
@{557058:f187f216-86f3-41b6-95d0-b0bfcfa9e74e} Strangely, I’m unable to replicate this bug despite checking out build 468. I am closing this now since I could not replicate the bug and you’ve found a workaround that works for now. I will be refactoring the plugin again in a couple of weeks due to Laravel 6.0 support by OctoberCMS and I hope that it this bug exists for some users, then that will be remove completely.

[Comment created by SaifurRahmanMohsin: 2020-09-09]
Thank you for reporting this issue along with the stacktrace. It will be resolved within the next 24-hours and a plugin update will be pushed within 48-hours.

Issues regarding this plugin!

Hi, Saifur!

I purchased your plugin and tried to integrate it with my project. I encountered some problems with it. Can you help me fix it?

Firstly, when I try to login via facebook I came across this problem.
screen shot 2016-07-27 at 2 34 40 pm

Secondly, after redirecting from google, I found that i didn't log in.

Looking forward to your reply. Thanks!

[Issue created by null: 2016-08-17]

[Comment created by null: 2016-08-17]
Thank you for letting me know,man! You did a great job!

On Tuesday, August 16, 2016, Saifur Rahman Mohsin [email protected]
wrote:

@enzewu https://github.com/enzewu I hope you have received the most
recent updates to the plugin which fixes all the components. The plugin is
now updated to current version of OctoberCMS core. Please do not hesitate
to reach out to me should you face any bugs or have queries on the plugin
in future. I would be glad to assist you based on my availability then.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#3 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AO5UBz5Q9c37QGXKdVDiL2y6stoEpUKUks5qgl25gaJpZM4JWgjM
.

[Comment created by SaifurRahmanMohsin: 2016-08-17]
@enzewu I hope you have received the most recent updates to the plugin which fixes all the components. The plugin is now updated to current version of OctoberCMS core. Please do not hesitate to reach out to me should you face any bugs or have queries on the plugin in future. I would be glad to assist you based on my availability then.

[Comment created by SaifurRahmanMohsin: 2016-07-29]
No problem. Thank you for purchasing it. Have a great day.

[Comment created by null: 2016-07-29]
Thanks a lot man! It works perfectly!
I will definitely recommend your great plugin to others.
I really appreciate it!

2016-07-29 11:15 GMT-04:00 Saifur Rahman Mohsin [email protected]:

I’ve already made the update so it’s fine anyway. If you wanted to know I
basically replaced the addImage function code with this:

/**

  • Saves an image to disk with the unique name.
    *

  • @param string $imageUrl

  • @return File
    */
    public function addImage($uniqueName, $imageUrl)
    {
    $tempFileName = str_slug($uniqueName, "-"). 'jpg';

    // Obtain the file from url
    $result = Http::get($imageUrl);
    $result -> toFile($tempFileName);
    $result -> send();
    
    // Save file to disk
    $file = new File;
    $file -> fromFile($tempFileName);
    $file -> save();
    return $file;
    

    }

It will fix the FB issue completely. Don’t worry, I’ll be making more
updates to the plugin and improving on it. Not immediately, but definitely.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#3 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AO5UB0ft5DKK2YDAlDQP0jXJjOJ1KzGVks5qahkhgaJpZM4JWgjM
.

[Comment created by SaifurRahmanMohsin: 2016-07-29]
I’ve already made the update so it’s fine anyway. If you wanted to know I basically replaced the addImage function code with this:

  /**
   * Saves an image to disk with the unique name.
   *
   * @param  string $imageUrl
   * @return File
   */
  public function addImage($uniqueName, $imageUrl)
  {
      $tempFileName = str_slug($uniqueName, "-"). 'jpg';

      // Obtain the file from url
      $result = Http::get($imageUrl);
      $result -> toFile($tempFileName);
      $result -> send();

      // Save file to disk
      $file = new File;
      $file -> fromFile($tempFileName);
      $file -> save();
      return $file;
  }

The original function had one getLocalTempPath function in the File class which used to be public but now made protected in OctoberCMS core.

It will fix the FB issue completely. Don’t worry, I’ll be making more updates to the plugin and improving on it. Not immediately, but definitely.

[Comment created by null: 2016-07-29]
It will be grateful if you can tell me how to do that. I want to have a
better understanding of your code.
Thank you very much!

2016-07-29 10:16 GMT-04:00 Saifur Rahman Mohsin [email protected]:

Ah! this is the interesting bug I identified as well. This is due to
update in OctoberCMS core, I have already fixed it here. I can push an
update in a couple of hours. Or if you want it urgently and know to modify
the code, I can tell you where to change the code here as a comment.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#3 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AO5UBzT_ODz7aMxKUdH9ptEl6rWh3NZNks5qagslgaJpZM4JWgjM
.

[Comment created by SaifurRahmanMohsin: 2016-07-29]
Ah! this was the bug I identified and mentioned earlier. This is due to update in OctoberCMS core, I have pushed an update to octobercms.com and it’s updated as well. I would recommend you to update the plugin from your backend. Enjoy! Feel free to reach out to me should you face any more bugs in this. I will help you resolve it. Have a good day.

[Comment created by null: 2016-07-29]
Hi, Saifur!

Thank you so much for the help!

However, I encountered another problem. This time when I was redirected to my website, I had an error there. And the error is this.

screen shot 2016-07-29 at 10 04 56 am

And I happened to find a weird issue. If I created an account with the email same as my facebook account in my database firstly, then tried the facebook login, it will log me in.
If I use a brand new facebook account to log in, I will come across the error above. I know it makes no sense working in this way. I just want to let you know and I hope this can help you figure out the problem.

Thanks again! Looking forward to your reply!

[Comment created by SaifurRahmanMohsin: 2016-07-29]
Hi. This actually means it works. There are some things that has changed with october so I should update the documentation soon. However, let me tell you how to fix this now.

First goto your page’s layout and add the session component. It doesn’t need to be placed anywhere. Just open the layout in CMS section, then hover to Components > User > Session and just click it once. It will add to the layout. This will made the session variables (the variable user) available on all pages that use that layout.

So now in your login page or wherever you place this component just add,

{% if user %}
    <p>Hello {{ user.name }}</p>
{% else %}
    {% component 'facebook' %}
{% endif %}

So, the else part will show the component i.e. the sign into FB button. And the if part is what’s shown if the successful login occurs, except if you use the Redirect feature to redirect the user somewhere else. In that case, then again on that page where you redirect the user, you can use the same {% if user %} Show some content for logged in users {% else %}, or you can even use RainLab User’s session component to do this on that page if you want; as this plugin extends that plugin.

[Comment created by null: 2016-07-28]
Hi, Saifur!

Thank you so much for the reply!

So the current situation is all of the plugins have the same issue: when we are redirected back to our website, nothing happens, we don't log in.

I totally understand your situation. We can wait for other social networks, however, we want to make facebook login work firstly. This one is a little urgent.

Can you help us fix that one today or tell me where the problem is and how to fix it? So I can try to fix it myself.

Also, after fixing the issue with facebook, if you wanna, I can help you fix other social logins, since they all have the same problem. By doing this way, both of us can save some time.

What do you think of this? Looking forward to your reply!
Thanks again!

[Comment created by SaifurRahmanMohsin: 2016-07-27]
That’s great, you are welcome.

No I do not. This is a very old plugin and needs update to the latest OctoberCMS build, a lot has been changed. My original intent was to build a new plugin for the same purpose with a more flexible option of allowing private OAuth servers to be configured as well than just the fixed ones that this plugin offers i.e. Google, Microsoft, LinkedIN, Github and Facebook. But I may most likely improve on this same plugin to incorporate those features. I will re-check and roll out an update to this plugin very soon resolving any issues. If you need any specific provider urgently and it does not work the way it is described as in the documentation then please provide me with details of it and I will help you fix it ASAP. Otherwise, it may take over a week for the update to occur considering the work I have at hand. Once again, thank you for getting my plugin. I hope you enjoy it!

[Comment created by null: 2016-07-27]
Hi, Saifur!

Thank you so much for being so helpful.

That facebook issue has been fixed.
But same issue occurs as google and as other social plugins, when I was redirected back to my website. The user actually didn't log in.

Do you know what is going on there?

[Comment created by SaifurRahmanMohsin: 2016-07-27]
@enzewu Thank you for writing to me. I found that Facebook has updated their panel. So now you need to do this..

  1. Goto your app and click on it’s name. It will take you to dashboard.
  2. In products, click Add product and it will take you to Product Setup page. Add Facebook Login. This will now show up as a tab. Inside that make sure you put the page URL of where you placed the social login button under Valid OAuth redirect URIs. For example http://mywebsite.com/login
  3. Click Settings (below Dashboard) and then in Basic tab, scroll down and press Add Platform, Click website and then put in the URL of your website.

I will update the documentation soon to reflect for the new panel. I have also found another interesting bug now so I will most likely update this plugin soon. I hope this solves your issue. I’ll close it for now but do let me know if you still face any issue. If it’s the same then please comment here and I will re-open it. Otherwise if it’s different issue, feel free to make a new issue. Enjoy the plugin!

[Comment created by null: 2016-07-27]
Thank you so much man!

[Comment created by SaifurRahmanMohsin: 2016-07-27]
Please wait. I will verify it and give you the solution.

Login with offline.mall plugin

I want to use this plugin for the offline.mall plugin login section. Can you tell me that this plugin can do it or can you assist me please?

[Issue created by hopeinlove94: 2020-08-15]
[Last updated on bitbucket: 2020-09-01]

[Comment created by SaifurRahmanMohsin: 2020-09-01]
@{5f37fd11347294003e053624} I would appreciate if you can update whether you were able to follow through with the instructions to solve your integration issue.

[Comment created by SaifurRahmanMohsin: 2020-08-30]
@{5f37fd11347294003e053624} Very well. Here’s the code you need to add to make it work.
https://gist.github.com/SaifurRahmanMohsin/54fa42e13c8124fb4f2b2526d396d2e2

Here’s a demo video showing you how it can be done as well:
https://youtu.be/g_1mDs8CWTU

[Comment created by hopeinlove94: 2020-08-30]
I still can't fix it. If you can help me look at the plugin to work well with mall plugin then I would be very grateful

[Comment created by SaifurRahmanMohsin: 2020-08-24]
Were you able to fix it? I got my laptop back so if you still have not, I could take a look.

[Comment created by SaifurRahmanMohsin: 2020-08-19]
The screenshots show the issue now lies with the Mall plugin than this one. It looks like the Mall plugin does some overloading to OctoberCMS' User model by unconventionally overloading the login method rather than extending it.

I can think of workarounds to this but right now I lack access to a working laptop so it may take upto a week for me to give you a code solution. For now, I’d suggest that you raise an issue in the mall plugin’s repo on this issue--to see if they can rather use the original extension way of doing things than overloading OR if you can code as well, then I’d suggest writing a bridge plugin that can use the right way to create a Customer model object and associate it with the User model during login. That way you’d solve the issue.

[Comment created by hopeinlove94: 2020-08-16]
Thanks for your help

I used the plugin but there are some problems

  • When I use "Redirect to" in the component, only "Refresh page" can log in and be selected when I choose the index, I cannot login.
  • when I finish logging in, there is an account created in rainlab.user plugin. But in the customer section of Offline.Mall does not show the new account to manage the order and the address.

I'm sorry for bothering you, but hope you can take a moment to consider it for me. Thank you very much






[Comment created by SaifurRahmanMohsin: 2020-08-15]
Hello Le Ming Hoang.

The bad news is that my laptop’s giving me trouble so I won’t be able to make a video demo until it’s fixed. This may take a couple of days.

The good news is I can type it out in my phone. So, I checked Offline’s Mail plugin and the code does have a signin partial which can be overloaded. You can do this either using the method shown in my previous comment or using this method which is the standard octobercms one.

If you go by my method, then simply add my plugin’s components into the expanded partial code and then it will appear on your website. Use the plugin’s setting to make it look different.

If you go by the standard octobercms method, then if you followed the documentation then you should have a component like this:

{% component 'signup' %}

So in your CMS backend page, under partials, create a file with filename as signup/signin.htm. If you save this empty file and visit the website again the login section should disappear which proves the partial overloading is correctly places. Else check and ensure that the file is correctly inside the partials folder and it will work. Once you have it working, now copy paste the signin.htm code from their github repository. Save and check, the website should show the original login as usual and things should work normally. So now you can drag in my plugin’s component into these sections and walla, you get it working. The rest of the instructions are same i.e. as per my plugin documentation to set the various providers setup with the appropriate api keys. All the best. Feel free to buzz me if you have any more doubts.

[Comment created by SaifurRahmanMohsin: 2020-08-15]
Yes, this plugin can be used there. You need to overload the plugin’s component markup to include this plugin’s component into the login section. It might be easier if I made a small video tutorial. Let me get back to you in a couple of hours.

User not logged in when returning from Google

Hello,

I am facing a strange issue. The plugin have been working correctly so far but, without changes in the code whatsoever, both my test and prod environment Google login suddenly stopped working. They use different ClientIDs/ClientSecrets and the Google flow itself does not return state error.

Considering a webpage like “example.com/login”, this is the response I get from Google

example.com/login/?state=c63b44e0401aa1c5bad1201f12c9f172&code=4%2F1gGrAfkxZ_uPsdfhs-T5i1PjJi12GDNbEG-jbgUWkPaFqY3A6DR6YNczUfnh296gdsB5pWlkOZ0c3UYowQImFeI&scope=email+profile+openid+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.profile&authuser=1&prompt=consent#

This GET response has a status code 403 Forbiden and my webpage just remains unchanged.

I confirm that the user never really gets logged in. The rainlab login itself is working perfectly.

Considering that weren’t changes in the code, my only guess is that maybe the URL parameters from google changed or something and the plugin needs to be updated? Does anyone one experience this issue or is just me?

Do you have further ideas? Is there any more information that would be relevant to you?

Please help, we have hundreds of users that are unable to login at this point.

[Issue created by bernardotavares: 2020-07-06]
[Last updated on bitbucket: 2020-07-13]

[Comment created by SaifurRahmanMohsin: 2020-07-13]
Thanks for letting me know, I have added a Known Issues section and mentioned this so that future purchasers may know why this happens. Also, if you like my plugin, kindly leave a positive review… it helps. Feel free to buzz me if you face any other issues. Have a nice day!

[Comment created by bernardotavares: 2020-07-06]
Saifur, thank you so much for the quick answer!
It seems that the issue was actually caused by the “mod_security” module in the apache server, which was recently activated by the host provider.

It seem it can block Google OAuth2 somehow, found about it here SpiderLabs/owasp-modsecurity-crs#1451

Maybe it could make sense to include this in the documentation under “errors” in case someone else faces the same issue :slight_smile:

[Comment created by SaifurRahmanMohsin: 2020-07-06]
Thanks for letting me know. I’ll check and fix it ASAP.

Issue with Google Avatar

It seems to be an issue with google avatar.
Everytime a user registers using Google, the User avatar is always the same (like this one).

The images actually exists in a path like /storage/app/uploads/public/5dc/965/0b5/thumb_15433_260_260_0_0_crop.jpg.
But not the URL /storage/app/uploads/public/5dc/965/0b5/5dc9650b53343519427401.jpg which do not contain an image, is just a blank page.

Because of this when a user is updated the rainlab user plugin returns the following error: "The avatar must be an image".

In contrast, the facebook avatar is working just fine. We get different images for each user, the URL is not empty and we can update the user.

This is taking a toll in our website and making this plugin unusable.

[Issue created by bernardotavares: 2019-11-28]

[Comment created by SaifurRahmanMohsin: 2019-11-28]
Fixed in v1.0.9. Please update.

Also, you need to delete the users with broken avatar image from the Users section of the app as it won't update avatar of a user record that already exists.

[Comment created by bernardotavares: 2019-11-28]
Thank you! Yes, is v1.0.8

[Comment created by SaifurRahmanMohsin: 2019-11-28]
Thank you so much for bringing this up. I'm looking into it now. Are you on the latest version of the plugin?

LinkedIn login not working

Hi Saifur,

I have manually deleted composer.lock and vendor folder before doing a force update.

When I attempt to sign in via Linkedin, this error appears:

"Cannot access protected property League\OAuth2\Client\Provider\LinkedIn::$state" on line 150 of <my_path_url>/social/components/LinkedIn.php"

Regards
Boon

[Issue created by simboonlong: 2016-11-28]

[Comment created by SaifurRahmanMohsin: 2016-11-28]
Great. And thank you for the review.

[Comment created by simboonlong: 2016-11-28]
Yes it is fixed. Thank you for the swift response!

[Comment created by SaifurRahmanMohsin: 2016-11-28]
I have identified this error and pushed an update. Kindly verify if it is solved so that I can close this issue soon. Good day.

Facebook login not working

Hi,

I'm having a problem with Facebook loginnot working properly. This is the response from Facebook:

Errors during multi transfer (Guzzle\Http\Exception\ClientErrorResponseException) ./vendor/guzzle/guzzle/src/Guzzle/Http/Exception/BadResponseException.php line 43 
Client error response 
[status code] 400 
[reason phrase] Bad Request 
[url] https://graph.facebook.com/v2.2/me?fields=id%2Cname%2Cfirst_name%2Clast_name%2Cemail%2Chometown%2Cbio%2Cpicture.type%28large%29%2Cgender%2Clocale%2Clink&

Is there a fix for this?

[Issue created by null: 2016-11-28]

[Comment created by SaifurRahmanMohsin: 2016-11-23]
Kindly do this: go into the plugins/mohsin/social folder and delete the vendor folder and composer.lock file completely. If you login to your backend via SSH then these are the commands:

cd public_html/plugins/mohsin/social/
rm composer.lock
rm -rf vendor/

Otherwise if you use FTP or web-based file manager, the deletion should be very straight-forward.
Now from the backend, kindly perform a force update. Now check the plugin and it should work well. I don’t remember ever adding a param function so I think there may have been an issue with your update. A force update should solve it.

Update: From user reports, this appears to be fixed. Please do let me know if this issue persists and I will re-open the issue.

[Comment created by null: 2016-11-23]
HI SaifurRahmanMoshin,

Just updated the plugin now I have this error:

The component 'Mohsin\Social\Components\Facebook' does not contain a method 'param'.

/var/www/vhosts/thinklabserver.com/nyco.thinklabserver.com/malcolm/api/modules/cms/classes/ComponentBase.php line 278

# Called Code Document Line
54 Cms\Classes\ComponentBase->__call(…) ~/plugins/rainlab/user/components/Account.php 62
53 RainLab\User\Components\Account->onRun() ~/plugins/mohsin/social/components/BaseProviderComponent.php 67
52 Mohsin\Social\Components\BaseProviderComponent->onRun() ~/plugins/mohsin/social/components/Facebook.php 32
51 Mohsin\Social\Components\Facebook->onRun()

[Comment created by SaifurRahmanMohsin: 2016-11-18]
Facebook has updated their API and even the packages the plugin depended on had made some changes which led to this issue. I have made a fix and pushed the update. Kindly read the instructions in the upgrade guide of the plugin before upgrading and you should be able to solve the issue. If it isn’t too much trouble could you let me know if it has solved your issue here? And also, if you liked my plugin kindly drop a good review and rating. Thanks in advance.

[Comment created by null: 2016-11-18]
Thanks!


Malcolm Paul

[email protected]

1-347-241-2690

[image: bklyn_letter_sign]

From: Saifur Rahman Mohsin [mailto:[email protected]]
Sent: Friday, November 18, 2016 2:13 PM
To: SaifurRahmanMohsin/Social-Plugin [email protected]
Cc: malcolm-bklyn [email protected]; Author [email protected]
Subject: Re: [SaifurRahmanMohsin/Social-Plugin] Facebook login not
working (#4)

Thanks for reporting this. I’ll look into it and get back to you in a
couple of hours with a fix.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#4 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ASyLRBXuZvzM_BBdEFYKdTVdqNkWfavIks5q_fi-gaJpZM4K2ted
.

[Comment created by SaifurRahmanMohsin: 2016-11-18]
Thanks for reporting this. I’ll look into it and get back to you in a couple of hours with a fix.

Pre-purchase question

Hello, I was looking at your plugin and have a question:

Will this let anyone login, or is it possible to limit who can login to some pre-determined / approved set of users?

[Issue created by clarktlaugh: 2015-12-10]

[Comment created by SaifurRahmanMohsin: 2015-12-10]
No, this plugin does not have any logic for such filtering. This is more of a custom feature than what the plugin was designed for i.e. to allow login via social networks easily. You can use this plugin for registration via social network but you will have to create another plugin which listens to the register event raised by this plugin when a user login occurs and then write logic to show an error message instead when it’s in this banned users list / or allow registration only when in allowed users list.

More info on your plugin.

Hello,
I've not purchased the plugin yet but have a couple questions for you:

  • What are you using for your oauth helper... anything? hybridauth?
  • can you easily change the requested permissions (like I need offline access to gmail from google for example)?
  • (optional) why would I used this instead of flynsarmy-sociallogin?

Thanks

[Issue created by that0n3guy: 2016-07-30]

[Comment created by SaifurRahmanMohsin: 2015-04-13]
Hello, thanks for writing. Here are details

  • I use thephpleague's oauth2-client.
  • The plugin uses the minimal requirements to authenticate user, but yes you can add more elements to the scope, incl. offline access.
  • It integrates well with the User-Plugin, comes with a cool set of re-usable social icons which can be customized as well, and it's more economical.

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.