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
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