Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Questions about Likes are welcome #1

Open
scripting opened this Issue Nov 16, 2018 · 18 comments

Comments

Projects
None yet
6 participants
@scripting
Copy link
Owner

scripting commented Nov 16, 2018

I just announced this project on my blog.

Likes is a Node-based server that manages an SQL database of triplets: username, URL of the thing they liked, and a timestamp. When you like something, it adds a record to the database. When you unlike, the record is removed. There's a demo app that shows how to hook up to the server in your own web apps. I've factored the code so there's an API and UI. You probably should only use the API in your stuff, though you're welcome to crib it all. We use Twitter for identity. If you want to run your own server, which is fine with me, you will need to create an app on Twitter. Questions are welcome.

Questions are welcome. This is the place to ask them. 💥

@scripting

This comment has been minimized.

Copy link
Owner Author

scripting commented Nov 16, 2018

BTW, I haven't written a lot of docs yet, because I'm not sure how much people will need, or on what topics. I think the code is easy enough to crib. Also not sure if other people will want to run a server.

@dodyg

This comment has been minimized.

Copy link

dodyg commented Nov 26, 2018

I love this feature "These are the items you've liked...". I think it would be neat if this information can be aggregated across participating likes servers.

@scripting

This comment has been minimized.

Copy link
Owner Author

scripting commented Nov 26, 2018

Hi @dodyg -- glad you like the feature. It could be included with the likes on other servers. There's a defined API for getting that list (that's how the home page gets it, through the API). It's item #3 in the list.

@scripting

This comment has been minimized.

Copy link
Owner Author

scripting commented Nov 29, 2018

Likes first appeared on Scripting News 19 days ago.

If you have questions or comments you can post them here.

I'm interested in knowing what you think.

@kevinctofel

This comment has been minimized.

Copy link

kevinctofel commented Nov 30, 2018

I LOVE the feature(s). For some reason, I can't "like" a post though. Have tried a few times on my Chromebook, which uses the Chrome browser, obviously. I get through the Twitter authorization and when I come back to click a "like", I get pushed back to the Twitter authorization. Could be an issue specific to me but wanted to mention. Happy to troubleshoot or provide additional information.

@scripting

This comment has been minimized.

Copy link
Owner Author

scripting commented Nov 30, 2018

Hey Kevin, glad you love the feature. I'm going to build on it because it's such a hit (I love it too).

Here's what's probably going wrong.

It depends on localStorage to store the info that Twitter sends us after you log in.

https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage

I tried doing a search to see if there are any issues re localStorage on Chromebooks, but didn't come up with anything.

Is it possible you have cookies turned off? Sometimes that also turns off localStorage.

I can put together a simple test page to determine if that's the problem.

@kevinctofel

This comment has been minimized.

Copy link

kevinctofel commented Nov 30, 2018

Thanks - I doubled checked and Cookies are enabled / allowed for all sites. I then turned that setting off and renabled it. Fixed! :)

@scripting

This comment has been minimized.

Copy link
Owner Author

scripting commented Nov 30, 2018

The usual remedy. ;-)

@cbasturea

This comment has been minimized.

Copy link

cbasturea commented Dec 1, 2018

I'd love to be able to go to the Links tab of scripting.com and 'like' the links that you share in that page.

@scripting

This comment has been minimized.

Copy link
Owner Author

scripting commented Dec 1, 2018

@cbasturea -- that's an idea that hasn't come up yet. Will think about it...

@scripting

This comment has been minimized.

Copy link
Owner Author

scripting commented Dec 2, 2018

Lots of changes today, mostly tweaks and must-have options --

http://scripting.com/2018/12/02/154005.html

Dave

@sabre23t

This comment has been minimized.

Copy link

sabre23t commented Jan 22, 2019

Just reporting what I needed to do today to get Likes to work .

I was wondering why clicking on hollow thumb, doesn't make it turn filled thumb. Hovering on the numbers shows me list of likers.

Opening an incognito mode page, and clicking on hollow thumb, triggers request twitter connection authorization. And subsequent click on the thumb works.

I then manually deleted all cookies and local storage for scripting.com site from my chrome browser. Refreshed the page. And clicking the thumb works, after request for twitter connection authorization was completed.

I'm just wondering whether this error/problem can be made more apparent to the user.

@scripting

This comment has been minimized.

Copy link
Owner Author

scripting commented Jan 22, 2019

@sabre23t

This comment has been minimized.

Copy link

sabre23t commented Jan 22, 2019

Noted. Didn't think of opening the chrome Developers Tool's Console tab earlier. Just tried it. Likes worked and give following output. Will do similar if it happened again.

daytemplate.js?x=9:254 likeClick:
daytemplate.js?x=9:262 likeClick: jstruct == {
    "what": "like",
    "screenname": "sabre23t",
    "url": "http://scripting.com/2019/01/21.html#a225549",
    "likes": [
        "sabre23t",
        "tanyaweiman"
    ]
}
@sabre23t

This comment has been minimized.

Copy link

sabre23t commented Feb 10, 2019

Ahh ... Browsing scripting.com blog from my home PC today (usually do that from office PC, or android mobile). Again had problem with liking a post. Open an incognito tab, and managed to like successfully. Immediately thought the problem are with cookies. Without further thought, I deleted all the scripting.com cookies. Liking work ...

Again I forgot to open the JavaScript console for error messages. Apologies.

@shellen

This comment has been minimized.

Copy link

shellen commented Feb 13, 2019

Love this idea and had even registered postlike.com a few years ago for a similar service. In the last few months, I've been using Applause Button on my own site. https://applause-button.com Happy digging.

@scripting

This comment has been minimized.

Copy link
Owner Author

scripting commented Feb 13, 2019

@shellen -- what do they use for identity on Applause Button?

Also what site do you use it on so I can see it in action??

@shellen

This comment has been minimized.

Copy link

shellen commented Feb 14, 2019

Using it on shellen.com example post: https://shellen.com/2018/10/25/fall-update.html and it is a no-auth solution with an upper limit of 10 claps (though I don't remember what it's limited by). Better sample here: https://blog.scottlogic.com/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.