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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T14:36:22+00:00 2026-06-07T14:36:22+00:00

I’m in a similar situation as : this guy on stack overflow . I’m

  • 0

I’m in a similar situation as : this guy on stack overflow. I’m following this tutorial on facebook (here) and on step 4. I need to publish an action on facebook. The tutorial says to run the following code in terminal:

POST https://graph.facebook.com/me/%5BYOUR_APP_NAMESPACE%5D:cook
?recipe=OBJECT_URL&access_token=ACCESS_TOKEN

My server is hosted by Winhost and they don’t support cUrl or Terminal use because the servers are shared. What can I do in PHP to post the action? Thanks for any help

  • 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-07T14:36:23+00:00Added an answer on June 7, 2026 at 2:36 pm

    Change your host if you need to use PHP to achieve posts as you will never be able to work with the Graph API to the best of your ability. For example, you will not be able to use the PHP SDK as it relies on cURL as well.

    As the tutorial indicates in the end, you can achieve calls to Facebook via the JS SDK. Create a test page with the JS SDK loaded as shown in the tutorial and click the button to publish the action

    <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US"
          xmlns:fb="https://www.facebook.com/2008/fbml"> 
    <head prefix="og: http://ogp.me/ns# [YOUR_APP_NAMESPACE]: 
                      http://ogp.me/ns/apps/[YOUR_APP_NAMESPACE]#">
      <title>OG Tutorial App</title>
      <meta property="fb:app_id" content="[YOUR_APP_ID]" /> 
      <meta property="og:type" content="[YOUR_APP_NAMESPACE]:recipe" /> 
      <meta property="og:title" content="Stuffed Cookies" /> 
      <meta property="og:image" content="http://fbwerks.com:8000/zhen/cookie.jpg" /> 
      <meta property="og:description" content="The Turducken of Cookies" /> 
      <meta property="og:url" content="http://fbwerks.com:8000/zhen/cookie.html">
    
      <script type="text/javascript">
      function postCook()
      {
          FB.api(
            '/me/[YOUR_APP_NAMESPACE]:cook',
            'post',
            { recipe: 'http://fbwerks.com:8000/zhen/cookie.html' },
            function(response) {
               if (!response || response.error) {
                  alert('Error occured');
               } else {
                  alert('Cook was successful! Action ID: ' + response.id);
               }
            });
      }
      </script>
    </head>
    <body>
      <div id="fb-root"></div>
      <script>
        window.fbAsyncInit = function() {
          FB.init({
            appId      : '[YOUR_APP_ID]', // App ID
            status     : true, // check login status
            cookie     : true, // enable cookies to allow the server to access the session
            xfbml      : true  // parse XFBML
          });
        };
    
        // Load the SDK Asynchronously
        (function(d){
          var js, id = 'facebook-jssdk'; if (d.getElementById(id)) {return;}
          js = d.createElement('script'); js.id = id; js.async = true;
          js.src = "//connect.facebook.net/en_US/all.js";
          d.getElementsByTagName('head')[0].appendChild(js);
        }(document));
      </script>
    
      <h3>Stuffed Cookies</h3>
      <p>
        <img title="Stuffed Cookies" 
             src="http://fbwerks.com:8000/zhen/cookie.jpg" 
             width="550"/>
      </p>
    
      <br>
      <form>
        <input type="button" value="Cook" onclick="postCook()" />
      </form>
    </body>
    </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

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
link Im having trouble converting the html entites into html characters, (&# 8217;) i
For some reason, after submitting a string like this Jack’s Spindle from a text
this is what i have right now Drawing an RSS feed into the php,
I have this code to decode numeric html entities to the UTF8 equivalent character.
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
In my XML file chapters tag has more chapter tag.i need to display chapters
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
I need to clean up various Word 'smart' characters in user input, including but

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.