Facebook app inside users wall? - javascript

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.

Related

jQuery.load without server

I'm writting a simply HTML5 file which I want to use locally in order to get access to and display different HTML5 documents with educational information.
In short: I have some different word documents with my personal summaries (college, courses, notes, etc) that I've been developing through years and now I'm looking to develop that browser application with which I'd like to be able to navigate through these word documents (previously converted into HTML5 format).
That browser application would be an index.html page with a navbar menu (let's say) with different links which will display in the index.html (inside a specific div) the different HTML5 files (remmember that word documents previously converted).
Since I do not want to use any server (I want to execute my application in any computer, offline) I tried using jQuery load() function as it's shown:
$("button").click(function(){
$("#content").load('/pages/example2');
});
It works fine in a server but does not without server.
Is there anyway to do what I want to? Am I missing something?
Thanks in advance for your attention.
Please, keep in mind I'm not a professional developer and this is my first post in a develop forum.
Kind regards.

Embed page source code to website

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.

Twitter Image sharing for web applications (API?)

Hello I am making a web application in which users will have to upload images they take to twitter using an integrated twitter image sharing button or function. I have looked at the TwitPic API, which does namely that, but according to their website (https://blog.twitpic.com/2014/10/twitpics-future/) they are basically discontinuing the it.
My Question is if there is an API or way in which I can have users share their image to twitter from within a browser window (so that i can be done via mobile devices as well)?
So far I have just used the twitter button creator and created a normal tweet share, but it does not support image sharing or I cannot seem to figure out how to make it support image sharing.
Yes, take a look at the Twitter documentation for uploading images.
Every modern Twitter library will be able to do this for you.

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.

How to make fixed (static) HTML elements on every page of site

How to make static fixed HTML element on every page of site?
I mean - for example, it is music player on site. It's displaying in corner of page, and while navigating on site - it doesn't reload.
Also, If you open many pages of site (different tabs) than state of this element is the same on all pages. (If I change something in this element on one page - it's changed on every page).
For real example I can provide a link (I think, it's allowed to do this on this site):
http://www.jamendo.com/en/album/40689
If you click "Play" - music player is opened. If you open other artist in other window - two players will be the same. If you have changed volume in one window - volume is changed in other too.
What techniques are used here? Can you give some references to read about such technologies?
Hopefully the site is working the same as it was when you posted the link...
This site is using Flash which seems to be using LocalConnection and ExternalInterface. The Flash object in the popup is the one actually playing the music. The controls on the page are calling a Flash object on the page which just sends commands to the popup.
Well I can give you a general idea of how I would do it.
You would need to persist the data of the feature you wan't to be the same across all pages.
For example: if you wanted something to be in the same position across all pages, you could store the current position of that variable in a session variable, cookie, or database for that particular user/ip address. Then you would make GET requests to the server "asking" for the most recent position of whatever you're tracking. And if it's different update the position accordingly.
You would need to make use of Javascript, A programming language, and some kind of data persistence.
If you want to read about the newest stuff, you could easily do this with node.JS. There is a library out there that makes it very easy to reflect server side changes on the client w/o making GET requests (making it a good for chat applications).
You can use local storage to store the current settings and poll them from each open instance. You won't need to use AJAX or the server if you only care about the settings being synchronized across one machine.

Categories