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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T21:11:33+00:00 2026-05-22T21:11:33+00:00

I have this piece of code: function fbFetch(){ //Set Url of JSON data from

  • 0

I have this piece of code:

function fbFetch(){
      //Set Url of JSON data from the facebook graph api. make sure callback is set with a '?' to overcome the cross domain problems with JSON
      var url = "http://graph.facebook.com/10150171084863204/photos?limit=3&type=small&callback=?";

        //Use jQuery getJSON method to fetch the data from the url and then create our unordered list with the relevant data.
        $.getJSON(url,function(json){
            var html = "<ul>";
            html += '<li><img src="foto.jpg" /></li>';
                //loop through and within data array's retrieve the message variable.
                $.each(json.data,function(i,fb){

                 html += '<li><img class="fbimg" alt="" src="' + fb.picture + '" /></li>';
                });
            html += '<li><a href=""><img src="fotolain.jpg" border="0" /></a></li>';
            html += "</ul>";


        $('.facebookfeed').html(html);                      



        });

    };

And this image will produce 3 images from the Facebook album. I would like for each image to be clickable and when a user clicks the image, the big image from the Facebook album will be shown.

Now how do I achieve that?

  • 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-22T21:11:33+00:00Added an answer on May 22, 2026 at 9:11 pm
    <a href="path-to-your-big-image.jpg"><img src="path-to-your-small-image.jpg"/></a>
    

    simple as this. now you can integrate this idea o anyplace. Whether it be the FB api or somewhere else.

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

Sidebar

Related Questions

I have this piece of code: $.getJSON('http://domai.nr/api/json/search?q='+encodeURI(d.val())+'&callback=?','',function(data){...}); But I'm seeing this in my Google
I have this piece of code: $(#faq).click(function () { var url = $.get(faq, {
I have the following piece of code from a book. There is this function
I have this piece of code: this.json.each(function(obj, index) { var li = new Element('li');
I have this piece of code: function MyFunction() { $.ajax({ type: POST, url: ajax.php,
I have this piece of code: ['design','finish','grills'].each(function(type) { this.json.type.each(function(obj, index) { console.log(obj); }); }.bind(this));
I have this piece of code: return json_decode($body); This return is from a function
I have this piece of code $.get('/proc.php?proc=get_color', function(data){ $('#offer_color').html(data); }); that is hosted on
I have this piece of code: function func1(text) { var pattern = /([\s\S]*?)(\<\?(?:attrib |if
I have this piece of code: var myObj = function () { this.complex =

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.