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

  • Home
  • SEARCH
  • 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 7853569
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T19:44:18+00:00 2026-06-02T19:44:18+00:00

I’ve tried and tried to get Open Graph to work on my own without

  • 0

I’ve tried and tried to get Open Graph to work on my own without any luck. I’ve also tried alternative options such as ajax call works in Chrome, Firefox but not in IE?, but that has serious issues.

What I would like is a complete solution for using Open Graph to retrieve all wall posts given a specified Facebook profile ID. It needs to get the access token without having the user login to facebook. edit: I have an application with an App ID and App Secret. Shouldn’t I be able to use this to get the Access_token? I want users without a facebook account to be able to see the wall posts of this kids page (that’s kind of the whole point of building a separate site).

For what it’s worth, this is for a site for a kid with a terminal brain tumor… which kind of leaves me in a position where I can’t make demands (like spend $50 on an SSL or “just use facebook”).

edit I think the only thing I need is to get the access_token. This can’t be that difficult.

  • 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-06-02T19:44:19+00:00Added an answer on June 2, 2026 at 7:44 pm
    • AJAX – Introducing Cross-domain Request (XDR)
    • XDomainRequest – Restrictions, Limitations and Workarounds

    • NOTE: this answer both your questions and peraph someone should close at least one of them

    so my solution to this problem is simple; you still continue to use AJAX to perform the request to facebook but not directly.

    so your code will look something like this:

            $(function() {
                $.ajax({
                    url : 'ajax-handler.php',
                    data : 'action=get_access_token',
                    type : 'GET',
                    dataType : 'json',
                    success : function(json) {
    
                    }
                });
            });
    

    then on the ajax-handler.php file you will put all the stuff needed to retrieve the access_token and other information.

    a server-side pseudo code (i’m using php here) will look something like this, but you need to use the php sdk for a better coding…

    <?php
    $action = $_GET['action'];
    if (isset($action)) {
        switch($action) {
            case 'get_access_token' :
                $query = array('client_id' => '####', 'client_secret' => '####', 'grant_type' => 'client_credentials');
    
                $access_token = file_get_contents('https://graph.facebook.com/oauth/access_token?' . http_build_query($query));
    
                //$access_token will be like access_token=asdas8dd98sada...
                //but we don't use it here...
    
                $app =   file_get_contents('https://graph.facebook.com/######');
    
                echo $app;
                break;
        }
    }
    ?>
    

    and this is the result:

    • demo: http://bit.ly/JO59mO
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have just tried to save a simple *.rtf file with some websites and
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
I want to count how many characters a certain string has in PHP, but
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I would like to count the length of a string with PHP. The string
For some reason, after submitting a string like this Jack’s Spindle from a text
I am trying to understand how to use SyndicationItem to display feed which is

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.