Youtube Comments API - youtube

in facebook by adding this tag we can get comments,replies and can reply:
<div class="fb-comments" data-href="{url}" data-version="v2.3"></div>
is there any simple way as facebook comment plugin in YouTube?we can get comments by js but for chatting enviroment we must concentrate every detail:
1.like,dislike answers
2.reply unswers
3.user can edit his/her answer etc etc.

Related

How to intergrate a single tweet into your website

Right now im building a simple html/css site for a friend. The homepage is a series of grid block divs that hold some content.
There are currently 3 block divs we have marked for social media posts. So for example, he wants his latest tweet to appear in one of those divs. His latest instagram post to appear in another and facebook in the last.
We can ignore facebook for the time being as I'm only focusing on the twitter/instagram for now.
I'm struggling with where to begin for this project. In the past I have only embedded twitter timelines, Instagram posts using widgets etc....nothing too complicated.
But for this project I will need separate stripped down posts, ie: just the plain text from his tweet inside the twitter div. The image from his Instagram post as the background image on the Instagram block etc...
I've spent the last few hours trying to get my head around oEmbed, and I can safely say I'm failing miserably.
I'm actually more confused now then before I started, so if any kind soul could give me a dummies guide to how I can approach this, that would be absolutely amazing.
Thank you!
You can acheive a single embedded tweet using an embedded timeline.
To get just one tweet, use the data-tweet-limit attribute on the embed tag, as detailed here:
https://dev.twitter.com/web/embedded-timelines/parameters
For example:
<a class="twitter-timeline" href="https://twitter.com/TwitterDev" data-widget-id="some_id" data-tweet-limit="1"></a>
According to twitter's documentation, that is the recommended way of getting tweets onto websites. From your description of the use case, I'd highly recommend just using Twitter's official widget.
If you really want to use Twitter's REST API and generate your page server side, I'd check out this stack overflow question as a starting point:
Setting up Twitter API, getting the last few Tweets
Hope that helps!

Post to Reddit via URL

Is it possible to post a link to Reddit via URL?
For example for Facebook you can do
<a href="https://www.facebook.com/sharer/sharer.php?u=http://stackoverflow.com">
Share Stackoverflow on your profile!
</a>
Does Reddit have an equivalent endpoint I can hit to share a URL?
There are several ways to do this, depending on exactly what kind of application you have.
If you're making something interactive, you can take a user to the submit page with a URL and title already filled in. The following URL will open the reddit submit form with a link to this question:
http://www.reddit.com/submit?url=https://stackoverflow.com/questions/24823114/post-to-reddit-via-url&title=Post%20to%20Reddit%20via%20URL
If you just want people to be able to submit your site or blog post to reddit, you can use a reddit button on your page instead.
If you're writing an app or a script where you need to post a URL to reddit, you can use the /api/submit route in the reddit API. If the user that is submitting the link has less than 2 link karma, then a CAPTCHA will probably be given.

Add twitter share button to each blog post on tumblr

I'm working on a tumblr blog and I would like to add the twitter share button at the end of each blog post. I know how to get the button for the code and I've been able to get it on a post successfully. However I want it to be on all my post so I don't want to have to add the code at the end of each blog posts's html.
I thought I could avoid this by putting the code in my blogs html. I added in between the block:Post and /block:Post. This works for the most part, the only thing is that when I'm on my blog the link shows up on the post preview and shows how many shares my blog has had and while I'm on an individual post it shows how many shares the post has.
How can I add it such that it only shows the number of shares the post has and will be added to each post automatically.
I think this should do the job:
http://ialreadydontlikeyou.tumblr.com/post/1167220523/implementing-the-tweet-button-on-posts-in-tumblr#.U7_VW41_v_E
It needs special workaround, as you need to place many tweet buttons on the same page.

What is data-widget-id in twitter api ? How i can get the data-widget-id?

I have some problems with previous version of the twitter api and I want to move to latest version. I see some information here https://dev.twitter.com/docs/embedded-timelines.
What is data-widget-id here. I want to show some specified people tweets in my website.
How do I do that?
Your question is already answered on the Twitter Developers page.
To create a timeline you must be signed in to twitter.com and visit the widgets section of your settings page. From this page you can see a list of the timelines you've configured and create new timelines.
Sign in on twitter.com
Create a new widget
The widget-id is provided by Twitter (you will be redirected to https://twitter.com/settings/widgets/xxxxxxxxxxxxxxxxxxx/ - the xxx is your widget-id)
Found the solution.
You can override the data-widget-id parameter in the widget by additionally setting the data-screen-name parameter inside the a tag of the widget. Like this:
<a class="twitter-timeline" href="https://twitter.com/<%= escape_javascript(#site.twitter_username) %>" data-widget-id="363460440807833600" data-screen-name="garzagabriel"></a>
NOTE: You still need to include the data-widget-id parameter. So generate the widget first by going to https://twitter.com/settings/widgets, and then add the data-screen-name parameter to the a tag in the embed code (like shown above)
Here is the documentation for this: https://dev.twitter.com/docs/embedded-timelines#timeline-selection
Best!

How do I get my Twitter feed to integrate with a blog (with individual comment threads)?

I would like to create a blog where my Twitter updates essentially create blog posts, with a comment thread. If there isn't blog software that does this right now (I did some searching but couldn't find the commenting aspect) what would be the simplest approach and starting blog software to do this?
Potentially an alternate approach to this would be a blog interface that could auto-update my Twitter feed with the title text.
Whatever the solution, I'd like it to be fully automated so that it is roughly no more work than currently updating my Twitter feed using the Twitter web interface. Note: I'm also interested in 'normal' blog posting via the default blog web admin interface.
If you would like to use Wordpress, you can use the Twitter Tools plugin.
"Pull your tweets into your blog and create new tweets on blog posts and from within WordPress."
Each tweet/blog post would automatically have comments enabled.
Good luck man,
Brian Gianforcaro
You could use something like Tumblr or Sweetcron with Disqus comments. You can auto-import your Twitter/Flickr/any RSS feed. You can also post text/audio/video from the site admin. You'll have to manually add Disqus comments, but then each post or Twitter message will have its own threaded comments.

Resources