1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Php and facebook graph api problem

Discussion in 'Black Hat SEO' started by syme00, Oct 3, 2013.

  1. syme00

    syme00 Regular Member

    Joined:
    Aug 15, 2009
    Messages:
    237
    Likes Received:
    41
    Occupation:
    Web entrepreneur
    Hi, i try to create a simple script that fetch userprofil data from an id

    Example: here the id is zuk

    Code:
    <?
    $link = json_decode(file_get_contents('http://graph.facebook.com/zuck'));
    echo $link_>name;
    ?>
    
    Problem is, it's seems like facebook limit this kind of request, sometime it's working but sometime i get the error :

    Code:
    [B]Warning: file_get_contents(http://graph.facebook.com/zuck) [[URL="http://lahavanenice.com/test/function.file-get-contents"]function.file-get-contents[/URL]]: failed to open stream: HTTP request failed! HTTP/1.0 403 Forbidden 
    [/B]
    Do you know how to bypass this ?

    Thank you.