Change back Facebook profile image.
-
@tomanagle deleting the app from facebook account and reauthorising won't bring the profile pic back.
-
@Jenkler facebook image goes under uploaded images.... did you remove the uploaded image from the profile?
-
@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.
https://graph.facebook.com/454415094716773/picture?type=large
Once i have removed the images it impossible to get it back... not sure how to fix it?
-
@Jenkler I mean from the user account. There is no way to get it from facebook again once you delete it in NodeBB. The only option is to upload it manually to the user account.
-
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
https://graph.facebook.com/454415094716773/picture?type=large
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 ?
-
@Jenkler don't know if this is a good option to patch to the plugin. probably not desirable functionality for others.
to add code blocks use 3 pack ticks before and 3 after
-
@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 ```
-
@Jenkler check the help link at the top right of the compose box
-
@pichalite Lol, how can I have missed that Thanks man!