@nguyễn-bảo hey there, can you reach out to us at [email protected] so we can take a look?
Change back Facebook profile image.
-
If i connect with facebook SSO and get a profile image then change it too default avatar.
- How can I use the facebook image again?
- Is it possible to deassociate a facebook SSO login?
-
Is there any solution for this?
-
said:
a facebo
You can revoke your Facebook access token by logging into Facebook, clicking the little down arrow in the main nav and going to settings.
Then find 'Apps' in the menu on the left. Find your app, hover over it and click the X. Alternatively, click the app and open its settings. and down the very bottom you will see a link to remove app.
You can then login with Facebook and it will ask you to authorise again.
-
@tomanagle deleting the app from facebook account and reauthorising won't bring the profile pic back.
-
@pichalite From the webroot or do you mean in the user account?
What i can see is that the facbook pic is not locally stored. If you check the image link it will point you to the facebook graf.
Once i have removed the images it impossible to get it back... not sure how to fix it?
-
Yeah, that i figured out myself. But it would be nice to be able to activate the facebook hotlink url again. Thats the issue that I am trying to solve.
-
Upload the Facebook image
-
That does not solve the issue. I want it to link to the Facebook picture. Not local
This way the image vill auto change if i change the Facebook image (Because its a link to the facebook storage of images)
-
@Jenkler you can customize the
nodebb-plugin-sso-facebook
to make it happenadd this code before this line https://github.com/julianlam/nodebb-plugin-sso-facebook/blob/master/library.js#L148
user.getUserField(uid, 'picture', function(err, userPicture) { if (!userPicture) { // Save their photo, if present if (picture) { user.setUserField(uid, 'uploadedpicture', picture); user.setUserField(uid, 'picture', picture); } } else { if (picture && userPicture !== picture) { user.setUserField(uid, 'uploadedpicture', picture); user.setUserField(uid, 'picture', picture); } } });
one warning though... even if the user changes to use default icon in their profile, this will switch it to facebook pic on login
-
Don't want to modify a local copy of the plungin
@julian <-- Could you patch this?
@pichalite <-- Btw, how do you do codeblocks in NodeBB ?
-
@pichalite Maybe its better to build a function in the plugin that renews the image instead? I hate to patch stuff myself. I only want to maintain my own plugins. Why reinvent the wheel again
@julian What do you think about that?
Test
This is a codeblock
Another way to write something
@pichalite Do you have a list of syntax for markdown? A good to know list? What is best for terminal output. This > or ```
-
@pichalite Lol, how can I have missed that
Thanks man!