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 6782591
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:45:42+00:00 2026-05-26T16:45:42+00:00

using the script code below, this returns the images from facebook vertically. ive removed

  • 0

using the script code below, this returns the images from facebook vertically. ive removed all traces of breaks and lines, and would assume that this would show the images one after another horizontally, but just shows them in a vertical stack…

blatantly obvious that im a “dirty copy and paster” but hey, we all gotta start somewhere!

{
var divContainer = document.createElement("div");
divContainer.innerHTML="%img src='http://graph.facebook.com/"+data[friendIndex].id+"/picture'%%/img%";
divTarget.appendChild(divContainer);
}

image
https://i.stack.imgur.com/DS3N4.png

also, massive apologies, but the < > tags around the img in the code makes the code disappear so ive replaced them with %

  • 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-26T16:45:43+00:00Added an answer on May 26, 2026 at 4:45 pm

    This is more an HTML/CSS issue than a Facebook/Graph API issue. div‘s are going to be rendered vertically. Try using a <span> tag instead:

    var spanContainer = document.createElement("span");
    spanContainer.innerHTML = "<src='http://graph.facebook.com/"+data[friendIndex].id+"/picture' />";
    divTarget.appendChild(spanContainer);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using this script to display all the images in a folder, but I
I want to enable auto update script in flex3. i am using below code
I' m trying to enable adding/deleting rows to/from table using folowing code: Script: $(document).ready(function()
I have this code to show a map using the Virtual Earth API: <script
Im using jquery 1.3.2 and this is the code: <script type=text/javascript> //<![CDATA[ jQuery(function(){ jQuery('.news_bullet
Wanting to make sure I'm using classes properly. The main script accepts this from
so I am scraping javascript from a site and it returns the below code,
I have the jquery code below that returns a list of ID's like this
I am using this zoom image script to load thumbs into larger images: http://www.eyecon.ro/zoomimage/#implement
i have this jQuery-AJAX code below and a form: <script type=text/javascript> $(document).ready(function () {

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.