Coder Social home page Coder Social logo

Comments (3)

yujuan avatar yujuan commented on April 19, 2024

Please check our developer website for how to formulate the the parameter. Especially http://developers.facebook.com/docs/api

You can also check our developer Forum on how the Graph Api work
http://forum.developers.facebook.net/viewforum.php?id=52

Thanks!

from facebook-ios-sdk.

petem avatar petem commented on April 19, 2024

I'm familiar with the forum and I even contribute. I'm also aware of the first document you cited. Isn't my parameter setting consistent with that document. BTW, I also tried quotes around the AID because of the underscore. It gave a different error message but still unhelpful.

Thinking that you may be suggesting use of the DELETE method, I've tried the latter form of ...
#if 0
NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObject:@"delete" forKey:@"method"];
[appDelegate.facebook requestWithGraphPath:[cellDict objectForKey:@"aid"] andParams:params andHttpMethod:@"POST" andDelegate:nil];
#else
NSMutableDictionary* params = [NSMutableDictionary dictionary]; // required even if empty
NSLog(@"aid: %@", [cellDict objectForKey:@"aid"]);
[appDelegate.facebook requestWithGraphPath:[cellDict objectForKey:@"aid"] andParams:params andHttpMethod:@"DELETE" andDelegate:nil];
#endif

and I get this logged ...

2010-08-28 08:55:57.244 ShareOrStare[20185:207] aid: 100000364547939_20156
2010-08-28 08:55:57.246 ShareOrStare[20185:207] request: <NSMutableURLRequest https://graph.facebook.com/100000364547939_20156?format=json&sdk=ios&access_token=XXX>
2010-08-28 08:55:58.875 ShareOrStare[20185:207] response: {"error":{"type":"Exception","message":"(#100) Invalid parameter"}}

Could you perhaps indicate where I'm wrong? Thanks.

from facebook-ios-sdk.

yujuan avatar yujuan commented on April 19, 2024

Unfortunately, We do not support album delete right now. We are working on making our api more complete, but that will take some time. Please check back with us.Thanks

from facebook-ios-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.