The problem I'm having is when attempting to delete a photo (after getting the ID, and using $ningApi->photo->deleteById($id); I'm getting a "This feature has been disabled" error. I'm certain the ID/key is correct, since changing it results in an invalid key error.

I have access to the photos and can delete them from the main site, but I don't seem to be able to delete via the API.


Views: 198

Reply to This

Replies to This Discussion

Can you post more of the code you're using?  I just did this, and it successfully deleted the photo.  What network are you running this on?

require 'src/NingApi.php';

$api = new NingApi($subdomain, $consumerKey, $consumerSecret, $email, $password);


... where $photoId was "6332436:Photo:5203", which I'd found by viewing source on an image I'd just uploaded.

Reply to Discussion


Blog Posts

Getting Started

Posted by Kyle Ford on October 13, 2010 at 8:00am 3 Comments

A Note on API Pricing

Posted by Phil McCluskey on October 1, 2010 at 8:55am 0 Comments

Welcome to Build!

Posted by Kyle Ford on September 30, 2010 at 8:30pm 1 Comment

Ning Status

© 2024   Created by Build Team.   Powered by

Badges  |  Report an Issue  |  Terms of Service