Embed page source code to website - javascript

I would like to know how to embed page source code to my personal website.
I want to show how many YouTube subscribers, Linkedin Followers, Instagram Followers etc. I have on my personal website (I'm using Squarespace).
If you go on a YouTube page, right click 'View page source' then search for the subscribers. Is there a way of extracting this code so it updates automatically on my website every time I get new subscribers.
It would be great if I could keep them all is the same style like I have on my homepage (I have just manually typed the numbers in for now) under my showreel.
http://www.tierney.tv/
Thanks in advance,
Michael

There is no way to just "embed" code and just display specific information of an account unless someone has created it as a plugin in the type of website you are using. You would have to create API access and requests. Here is the way to Authorize Requests. https://developers.google.com/youtube/v3/code_samples/javascript
Here with your Channel ID you can get a snippet to get your subscriber numbers.
https://developers.google.com/youtube/v3/code_samples/code_snippets

These widgets should be made and supported by respective companies/sites. They can also be found there with respective links to embed the widgets.
Ex - youtube, facebook, google maps have embed codes provided to embed their videos, posts, maps.

Related

How to detect who visit my website from instagram

I created a website with php and put my websites link in my instagram biography. How can i detect which instagram account visit my website from my instagram biography?
It would be difficult to track which user has visited, yet we can gather some analytics like clicks on your website using Google Analytics. You can create Events in that and trigger them after some time(like 3-5sec).On the GA Dashboard then you can see these analytics. Similarly you can gather other informatics.
This is basically related to your web functionalities, getting info of instagram user however I think it's not possible as far as i know.

How to display a webpage in a html page from an url?

I want to display 2 webpages in single aspx webpage is it possible ?
for example
user -- open link for www.mywebsite.com
In my homepage i want to display both www.google.com and www.bing.com.
In the background i call two different url's and they should display on my same aspx page.
To integrate websites in other websites use an iframe like this:
<iframe src="http://www.bing.com"></iframe>
More information: w3schools
Google
This will not work for google because of their therms and services:
1.3 Your Obligations. You shall receive a Query from the End User and shall forward that Query to Google. You maynot in any way frame, cache or modify the Results produced by Google, except as otherwise agreed to between You and Google.
So if you want to integrate Google search to your website, you can read more about the API here Google Api
Bing
To embend searchresults from bing take a look at the Bing api. 5000 queries per day are free.

display twitter compose tweet pages through an iframe

so i have kind of a strange problem, I am in the process of building my own tweet button which is simple enough just using a link that resembles this <a href="https://twitter.com/intent/tweet?text=YOUR-TITLE&url=YOUR-URL&via=TWITTER-HANDLE">
now this as a link works just fine even with the dumby data prvided the problem is i would really like this page to open in an iframe on my site.. but twitter and other social networks have disabled this capability I am woundering if anyone know's a way i can use some sort of iframe or other tech including I assume an oauth and api which will alow me to send write, and display a tweet that the user can send inside my sight ?
as just using this returns an empty frame
<iframe src="http://twitter.com/intent/tweet?text=YOUR-TITLE&url=YOUR-URL&via=TWITTER-HANDLE">
</iframe>
anyhelp on how or even if I can do this or even a site I can check out that allows me as a user to do this would be greatly appreciated
(just a note I dont wish to tweet on a user behalf but rather display a pre defined text's tweet that enable the user to send without leaving my site or opening a new window )
Seems like it's against their terms of service. I'm researching the same issue now and it looks like you need to setup 0Auth to get an access token and then use the API. I'll report back when I have the full answer.

google analytics tracking link clicks

I was wondering how would i go about adding a simple tracking to a certain link on a site I am developing for a client
I am using google analytics for tracking the source of the incoming traffic and after the visitor has entered the site he supposed to click on a link, I an interested in knowing how many clicks I got from every source.
You're looking for "Campaigns". There's an extensive article about it here: http://support.google.com/analytics/bin/answer.py?hl=en&answer=1239239
You can use the "URL Builder" tool to create a URL for a specific link (on an external site, presumably) by giving a name to your campaign and other details. The parameters are utm_source, utm_medium, and utm_campaign in particular.
I'll mention that Analytics will already tell you (without any modification to the link) what referring page sent a visitor, so you can tell what page a visitor was viewing before arriving at your site. All this is found under "Traffic Sources" in the Analytics reporting interface. The utility of campaigns is if either (a) you'll be scattering links in ads on many different websites, and it's the ad rather than the page that you want to track, or (b) there may be multiple links to your site on the same page and you want to know which one the visitor clicked.

Facebook app inside users wall?

Is posible to build a site like youtube, that when is shared in facebook users can run the app (in this case the video player) in the user wall without enter to the youtube page.
if is posible, this is only for videos?... can i get an interactive app, like a game do the same.
this can be only achieved using flash? or there is any way to do it using HTML5?
Thanks beforehand, any information will be apreciated.
This functionality is available for any application and it's not limited to videos but any flash objects (strictly sandboxed without any access to parent document). Read more about posting to feed in user object documentation.
Use source field for post to provide link to flash movie/video. It is not stated in current documentation for user object that this field can be passed, but this is works, and it listed in post object documentation.
It is not possible to embed/share/publish HTML5 content on Facebook.

Categories