1
votes

I am building an iphone app that reads the videos uploaded , photos uploaded and posts from facebook. The photos and the videos are not from the feed, they are from the albums. So I got an access token for my app (not a user access token) and got it working for the photos and posts. But when I try to get the videos it returns me the following error:

{
   "error": {
     "message": "A user access token is required to request this resource.",
   "type": "OAuthException"
  }
}

The documentation for pages (https://developers.facebook.com/docs/reference/api/page/) claims that all of these connections can be accessed by any app or user access token, but the error message received implies that a user token is required. Is this a bug?

3
Please post the actual API call you're making. - Jeff Sherlock
Coulton, that's not correct. App access tokens are a distinct concept from user access tokens. A user access token involves a user authorizing an app and can be used by the app to perform actions and fetch data in the context of the user. An app access token is exchanged for the app secret, and is typically used to perform actions on behalf of the app itself (NOT a page). - Yuliy

3 Answers

0
votes

try something like this.. just convert the string to a URL..

NSString *urlString = [NSString stringWithFormat:@"https://graph.facebook.com/me/videos/uploaded?date_format=U&access_token=%@",[authenticationKey_ stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]];
0
votes
0
votes

You need permissions for user's videos and pictures.