Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Jul 2011
    Posts
    118
    Thanks
    6
    Thanked 0 Times in 0 Posts

    http_Get not working / Facebook feed

    Hey everyone,

    I'm just starting to play around with the Facebook Graph API and have very quickly run into a problem.

    As far as I understand it, I need to retrieve the data from said FB page using something like the following:

    PHP Code:
    $feed http_get("https://graph.facebook.com/PAGENAME?access_token=ACCESSTOKEN"); 
    However, if I run that I simply get:
    Fatal error: Call to undefined function: curl() in...
    I've checked and PECL is enabled as I've heard this error can be caused by that being false.

    Any ideas? Thanks

  • #2
    Regular Coder
    Join Date
    Jul 2011
    Posts
    118
    Thanks
    6
    Thanked 0 Times in 0 Posts
    Ok, with help from a friend I managed to get what I needed using curl:

    PHP Code:
    $ch curl_init();

    curl_setopt($chCURLOPT_URL"https://graph.facebook.com/PAGE_ID/feed?access_token=ACCESS-TOKEN");
    curl_setopt($chCURLOPT_HEADER0);

    curl_exec($ch);

    curl_close($ch); 


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •