Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6164873
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T22:04:03+00:00 2026-05-23T22:04:03+00:00

I am looking to create an easy java script plugin for my site that

  • 0

I am looking to create an easy java script plugin for my site that can be placed in other sites to pull info from my site. The Facebook live stream plugin allows you to select a couple options and it will spit out a line of code to place in your site to have the Facebook live stream. Can someone point me in the right direction or give me some info on how to do this? I know how to write the java script to pull from my site but I do not know how to make it so simple to integrate into another site. I really like that the Facebook plugin requires only one line of java script, this will make it easier for my customers to include in their site. Any help would be appreciated.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T22:04:03+00:00Added an answer on May 23, 2026 at 10:04 pm

    Take a look at the code you have to post when using FB live streams:

    <div id="fb-root"></div>
    <script src="http://connect.facebook.net/en_US/all.js#appId=APP_ID&amp;xfbml=1"></script>
    <fb:live-stream event_app_id="APP_ID" width="400" height="500" xid="" 
    always_post_to_friends="false"></fb:live-stream>
    

    So here’s what I would think happens under the covers:

    1. The script is fetched from the server
    2. Onload the script code looks for the fb:live-stream element and looks at the attributes as parameters
    3. The fb:live-stream element is removed from the DOM and converted to appropriate DIVs, etc.
    4. The script registers some mechanism to periodically refresh the content in the DIVs

    It’s also possible that the fb-root element is used for the content. No idea. Would have to look @ a DOM.

    That’s really all most of these widgets do. Usually you tell the user to get a script.js via a script tag and also define an element that they would like for the content to appear in. Once the script tag is loaded, register an onload handler, find your element, and do what you gotta do.

    Just be careful to isolate any jQuery instances or globals you might depend on so you don’t mess up anything on the page.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am looking to create symlinks (soft links) from Java on a Windows Vista/
I'm looking to create favicon.ico files programatically from Python, but PIL only has support
I'm looking to create an Intellij IDEA language support plugin for Erlang. The first
If I were looking to create my own language are there any tools that
I'm writing a web app that points to external links. I'm looking to create
I'm currently looking for an easy way to extract information from server XML responses
My question is as easy as that: What is the best method to create
Is there a way to create unit tests that can be run with the
I am looking to create an expression tree by parsing xml using C#. The
I am looking to create a video training program which records videos - via

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.