disqus / disqus-api-recipes Goto Github PK
View Code? Open in Web Editor NEWCook all the things!
Cook all the things!
Hello,
I found this repo via this help page:
... which I found via this Stack posting:
How to reset Disqus width on mobile orientation change
I'm hoping someone here could help me out.
I've recently noticed that the Disqus embed does not resize on my iPhone during an orientation change.
Is there an API recipe that could help me here?
Thanks!!!
Hi, current i'm developing mobile apps (Xamarin) using disqus javascript mobile embed solution. While on Windows Phone work fine, on Android (minimum 5.0) WebView based on Chromium, this solution never work flawlessly.
I can login and success, but when back to embed page, i'm still not logged in. When try login again, i automatically back to embed page without enter credential again, and i assume session or cookies is work fine.
Trying see debug output, i've found this:
[chromium] [INFO:CONSOLE(0)] "Scripts may close only the windows that were opened by it.", source: (0)
[chromium] [INFO:CONSOLE(1)] "WebSocket connection to 'ws://realtime.services.disqus.com/ws/2/thread/3673053070?' failed: Error during WebSocket handshake: Unexpected response code: 400", source: http://a.disquscdn.com/next/embed/lounge.bundle.20b16d338a6075d33134dcc2ade8eb76.js (1)
Not sure, what is that, but i think the cause of this problem is disqus trying use websocket that not work on chromium ?
Temporary solution i have found is set my android target build to 4.4 and it will work fine.
Hi,
This is obviously not an issue with the library but I don't know a better place to ask:
We are already using Disqus SSO successfully however we need to define a set of moderators our of the new SSO users we create for every event. Right now we allow the SSO user to e created and after that manually we copy the @ssouseridhash
and we add it as moderator of the site, something we can have as many as 20 moderators. Wondering if there is a way to specify the new user is meant to be a moderator when creating hmac data.
Thanks!
I am using the disqus-python API to do oAuth authentication for my application.
This is the script I am using in my application, https://github.com/disqus/DISQUS-API-Recipes/blob/master/python/oauth/oauth_example.py
The authentication success but I get a 500 Internal Server error after authentication on my browser. But when I try it from links, I see "CSRF verification failed (403)". Can anyone tell me what could be the issue here?
these are never used (on the page). some comments as to why they're there (if they are needed) would be helpful.
var disqus_identifier = ...
var disqus_url = ...
var disqus_config ...
Hi,
I'd like to know if there are solutions to this for people using embedded web views or if you plan on offering alternatives before the deadline next year? They're showing warnings in the web view now when people login using google.
https://developers.googleblog.com/2016/08/modernizing-oauth-interactions-in-native-apps.html?m=1
Much appreciated.
Please, provide Python 3 compatible example... https://github.com/disqus/DISQUS-API-Recipes/blob/master/sso/python/sso.py
I confused with encode/decode...
I assume these are meant to be used by all and sundry under and license or under none. If so, could this be stated explicitly in the README, or maybe add a very permissive license (eg CC0 - see FAQ about CC0 and software )
Hi,
I'm following your guide to display disqus comments on my Android app. It works fine for the most part as comments are being displayed nicely. However, I can't get the login flow to work whether it's via email or through any of the social media. The result is that my users can see the comments but cannot login or add any new comments.Anyone following this guide can easily reproduce this behaviour. I'm suspecting that the popup window that you now display on clicking Login doesn't play well with embedded webview.
Any suggestions on how to solve this?
The API documentation states that
Note: We recommend using SSL for all requests to the API, but it is not required for anonymous requests.
But the PHP samples show that proper SSL verification has been explicitely disabled:
Why is this?
Why is disqus_config not used in the example (/js/disqus-reset/disqus_reset.html)?
Hi! I am trying to change the avatar of DISQUS in order to use custom avatars. Then I ended up here. How do I implement sso.rb in my Rails App? 'cause I see the code and realized that I have to create a Json object with the parameters and finally embed a javascript tag with the disqus funtion.
My questions are. Do I need to use explicitly the sso.rb? can I implement my own helper in order to embed the js code? do the js code need to be inside of a function (load event) ?
thanks!
I am developing a Drupal site and would like the Disqus comments included in the results returned from the site's own search engine (be that the built-in, standard, basic Drupal search or Apache Solr).
So can I use the PHP Disqus API to achieve this?
I started discussing it here:
http://webmasters.stackexchange.com/a/52159/3738
In the README.markdown section on https://github.com/disqus/DISQUS-API-Recipes the documentation refers to code for example: /php/get-thread-details.php
But is is not clear where in the repository this actually is: there's no php directory shown in the view of the repo on the same page above the README.markdown.
Fortunately I figured out where this is by searching in google for one of the files. The location of the examples is: https://github.com/disqus/DISQUS-API-Recipes/tree/master/snippets/php
Please update the documentation with this snippets prefix. Thanks.
I wanna implement a feature where I notify my users that someone replied on their comment.
I looked deep into the onNewComment
in the js lib, but there wasn't information whether the new comment is a reply or not, and to which comment.
Am I approaching this wrong?
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.