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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T11:09:58+00:00 2026-05-28T11:09:58+00:00

Dear fellow programmers, I am working on my B&B’s website www.bordemundo.com and would like

  • 0

Dear fellow programmers,

I am working on my B&B’s website http://www.bordemundo.com and would like to include my very latest facebook pages status update in the header of my website.

As I am not a crack when it comes to JQuery I ran Google and edited a script which works just fine. I managed to get rid of the date-stamp that I actually do not need, as the status would change exactly once a day. Now I noticed that it does also update when I share another page’s friend’s phot album or any link or digital information.

I would rather only fetch the status updates that I type in myself. Has anyone of you an idea how I could easily manage this by using the script that I edited? I attached the code below.

Thx for considering and I really appreciate any help!

(function($) {
$.fn.faceFeed = function(options) {
    /**
     * Configuration
     *
     * `pageName:` The name of your Facebook page. Required.
     * `tokenGenerator:` Path to a file that will return a JSON access_token. If defined, this will take
     *                   priority over `accessToken`.
     * `accessToken:` A token you generate at <https://developers.facebook.com/tools/explorer>.
     * `dateClass:` The class of the `<span>` that contains your date "ago in words". Default: `post-date`
     */
    var config = {
        pageName:    '',
        tokenGenerator: '', // default: token.php
        accessToken: '',
        postsToFetch: 1
    };
    $.fn.extend(config, options);

    /**
     * Converts "http://" links into <a> tags.
     *
     * @param {String} a block of text for which all "http://" links need conversion
     * @return {String} the same block of text with URLs re-formatted.
     */
    function linkify(text){
        if (text) {
            text = text.replace(
                /((https?\:\/\/)|(www\.))(\S+)(\w{2,4})(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/gi,
                function(url){
                    var full_url = url;
                    if (!full_url.match('^https?:\/\/')) {
                        full_url = 'http://' + full_url;
                    }
                    return '<a href="' + full_url + '">' + url + '</a>';
                }
            );
        }
        return text;
    }

    /**
     * Requests your page's status feed from the Open Graph and injects it as HTML into the
     * element.
     *
     * @param {String} accessToken - A generated or provided access token for authorizing
     *                               with the API.
     */
    function getPosts(accessToken, self) {
        $.ajax({
            url: 'https://graph.facebook.com/'+config.pageName+'/feed',
            type: 'GET',
            data: {
                access_token: accessToken,
                limit: config.postsToFetch
            },
            dataType: 'json',
            success: function(response) {
                self.html('');
                for (var c=0; c < response.data.length; c++) {
                    var status = response.data[c];
                    var statusMessage = (status.message) ? status.message : status.story;

                    var txt = linkify(statusMessage);

                    var row = $('<span class="status"></span>').html(txt);
                    self.append(row);
                }
            }
        });
    }


    /*
     * Runtime.
     */
    return this.each(function() {
        var self = $(this);
        self.html('<p>Lade Neuigkeiten...</p>');

        if (config.tokenGenerator) {
            $.ajax({
                url: config.tokenGenerator,
                type: 'GET',
                dataType: 'json',
                success: function(generator) {
                    getPosts(generator.access_token, self);
                }
            })
        } else {
            getPosts(config.accessToken, self);
        }
    });
};

})(jQuery)

  • 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-28T11:09:58+00:00Added an answer on May 28, 2026 at 11:09 am

    Yes, change from reading the page feed to reading page statuses. See: http://developers.facebook.com/docs/reference/api/page/

    You can also be sure the poster of the item is who you want it to be by checking each item’s post.from.id and ensuring that ID is the ID of the poster you want to display

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

Sidebar

Related Questions

dear fellow programmers! I'd really appreciate a few answers or hints concerning following problem:
Dear stackoveflow, I have this problem. I'm working with an old version of mssql
Dear All, I am trying to parse the following HTML fragment, and I would
dear all..i have a table it looks like: Name version DDX 01 DTX 05
Dear all, I now have a preliminary macro (defmacro key-if(test &key then else) `(cond
Dear fellow developer, for some reason updates for 1720 records takes around 15 seconds
Dear Friends good afternoon. My problem may be this is very basic one i.e.
Dear RubyMine Overflowers, I downloaded the latest version of RubyMine (3.2.1) on a Mac
Dear Fellow Android Developers! EDIT: Thank you all for your answers. I see from
Hello dear programmers, I have a requirement for creating a custom tableviewcell with a

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.