PHP Classes

"message": "An access token is required to request this resource

Recommend this page to a friend!

      Facebook Page Album  >  All threads  >  "message": "An access token is...  >  (Un) Subscribe thread alerts  
Subject:"message": "An access token is...
Summary:"message": "An access token is required to request this resource
Messages:4
Author:Andrew Sheldon
Date:2011-04-20 19:05:30
Update:2011-04-21 11:08:04
 

  1. "message": "An access token is...   Reply   Report abuse  
Picture of Andrew Sheldon Andrew Sheldon - 2011-04-20 19:05:30
When I run the script I get error:

Warning: file_get_contents(https://graph.facebook.com/100000435448736/albums?access_token=115291531831384|FUQPbFCCEz5O_o22HhkToqGbTaI) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request in /home/sheldon6/public_html/fb/phpcUrl.php on line 120


and if i copy/paste https://graph.facebook.com/100000435448736/albums?access_token=115291531831384|FUQPbFCCEz5O_o22HhkToqGbTaI into browser this is what I get below
{
"error": {
"type": "OAuthException",
"message": "An access token is required to request this resource."
}
}


Thanks
Andy

  2. Re: "message": "An access token is...   Reply   Report abuse  
Picture of Daniel Vasic Daniel Vasic - 2011-04-20 20:07:14 - In reply to message 1 from Andrew Sheldon
Sir that Facebook page does not exist this class can't be used to get personal photos you need facebook page to use this class class name : Facebook Page Ablum

  3. Re: "message": "An access token is...   Reply   Report abuse  
Picture of Andrew Sheldon Andrew Sheldon - 2011-04-20 21:30:29 - In reply to message 1 from Andrew Sheldon
Hi,
so are you saying that your script will only get facebook fan pages.

Do know of an example script to get personal albums.

Thanks
andy

  4. Re: "message": "An access token is...   Reply   Report abuse  
Picture of Daniel Vasic Daniel Vasic - 2011-04-21 11:08:04 - In reply to message 3 from Andrew Sheldon
Yes only fan pages, Sorry Andy I don't know any script to do that :(