activity.json returning 410 Gone

%3CLINGO-SUB%20id%3D%22lingo-sub-207682%22%20slang%3D%22en-US%22%3Eactivity.json%20returning%20410%20Gone%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-207682%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20a%20number%20of%20solutions%20using%20the%20Yammer%20API%20to%20write%20Open%20Graph%20activities%20into%20yammer%20using%20the%20activity.json%20andpoint.%20Today%20they%20all%20started%20getting%20the%20response%20%22410%20Gone%22.%26nbsp%3B%20Even%20the%20sample%20requests%20in%20the%20documentation%20are%20bombing%20out%20like%20this.%26nbsp%3B%20This%20is%20a%20supported%20endpoint.%20Anyone%20have%20any%20idea%20what's%20going%20on%3F%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdeveloper.yammer.com%2Fdocs%2Fwriting-activity%26nbsp%3B%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdeveloper.yammer.com%2Fdocs%2Fwriting-activity%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-207682%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EREST%20API%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-211432%22%20slang%3D%22en-US%22%3ERe%3A%20activity.json%20returning%20410%20Gone%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-211432%22%20slang%3D%22en-US%22%3E%3CP%3Evar%20likePage%20%3D%20function(url%2C%20title)%20%7B%3CBR%20%2F%3Evar%20deferred%20%3D%20%24.Deferred()%3B%3CBR%20%2F%3E%24.when(lml.UserManager.getUserProfileProperties()).done(function(personProperties)%20%7B%3CBR%20%2F%3Eyam.platform.request(%7B%3CBR%20%2F%3Eurl%3A%20%22%3CA%20href%3D%22https%3A%2F%2Fapi.yammer.com%2Fapi%2Fv1%2Factivity.json%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fapi.yammer.com%2Fapi%2Fv1%2Factivity.json%3C%2FA%3E%22%2C%3CBR%20%2F%3Emethod%3A%20%22POST%22%2C%3CBR%20%2F%3Edata%3A%20%7B%3CBR%20%2F%3Eactivity%3A%20%7B%3CBR%20%2F%3Eactor%3A%20%7B%3CBR%20%2F%3Ename%3A%20personProperties.FirstName%20%2B%20%22%20%22%20%2B%20personProperties.LastName%2C%3CBR%20%2F%3Eemail%3A%20personProperties.UserName%3CBR%20%2F%3E%7D%2C%3CBR%20%2F%3Eaction%3A%20%22like%22%2C%3CBR%20%2F%3Eobject%3A%20%7B%3CBR%20%2F%3Eurl%3A%20url%2C%3CBR%20%2F%3Etitle%3A%20title%2C%3CBR%20%2F%3Eimage%3A%20%22%22%2C%3CBR%20%2F%3Edescription%3A%20%22description%22%3CBR%20%2F%3E%7D%2C%3CBR%20%2F%3Etype%3A%20%22page%22%3CBR%20%2F%3E%7D%3CBR%20%2F%3E%7D%2C%3CBR%20%2F%3Esuccess%3A%20function(data)%20%7B%3CBR%20%2F%3Edeferred.resolve()%3B%3CBR%20%2F%3E%7D%2C%3CBR%20%2F%3Eerror%3A%20function(jqXHR%2C%20textStatus%2C%20errorThrown)%20%7B%3CBR%20%2F%3Edeferred.reject()%3B%3CBR%20%2F%3E%7D%3CBR%20%2F%3E%7D)%3B%3CBR%20%2F%3E%7D)%3B%3CBR%20%2F%3Ereturn%20deferred.promise()%3B%3CBR%20%2F%3E%7D%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPlease%20suggest%2C%20do%20I%20need%20to%20update%20URL%20to%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%22%26nbsp%3Burl%3A%22%3CA%20href%3D%22https%3A%2F%2Fwww.yammer.com%2Fapi%2Fv1%2Fopen_graph_objects%2Fupdate.json%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.yammer.com%2Fapi%2Fv1%2Fopen_graph_objects%2Fupdate.json%3C%2FA%3E%22%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-211423%22%20slang%3D%22en-US%22%3ERe%3A%20activity.json%20returning%20410%20Gone%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-211423%22%20slang%3D%22en-US%22%3EThanks%20for%20the%20response%2C%20I%20had%20opened%20an%20incident%20with%20Microsoft%204%20days%20ago%20but%20still%2C%20they%20are%20investigating%20the%20issue.%20Thanks!%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-211402%22%20slang%3D%22en-US%22%3ERe%3A%20activity.json%20returning%20410%20Gone%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-211402%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Kamal%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20had%20a%20conversation%20with%20Yammer%20support%2C%20and%20they've%20altered%20the%20API%20without%20notifying%20anyone.%20They've%20promised%20to%20update%20the%20documentation%2C%20but%2C%20well%2C%20you%20know%20how%20that%20works%20%3A)%3C%2Fimg%3E%20.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI've%20been%20able%20to%20figure%20out%20what%20to%20do%20by%20Fiddling%20the%20user%20interface.%20Here's%20what%20I%20came%20up%20with%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20637px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F36984iAFEDDA64E73B7259%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22fiddle.jpg%22%20title%3D%22fiddle.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-211382%22%20slang%3D%22en-US%22%3ERe%3A%20activity.json%20returning%20410%20Gone%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-211382%22%20slang%3D%22en-US%22%3EEven%20'm%20also%20getting%20same%20issue%20%3A%20platform_js_sdk.js%3A2%20POST%20%3CA%20href%3D%22https%3A%2F%2Fapi.yammer.com%2Fapi%2Fv1%2Factivity.json%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fapi.yammer.com%2Fapi%2Fv1%2Factivity.json%3C%2FA%3E%20410%20(Gone)%3C%2FLINGO-BODY%3E
Occasional Contributor

I have a number of solutions using the Yammer API to write Open Graph activities into yammer using the activity.json andpoint. Today they all started getting the response "410 Gone".  Even the sample requests in the documentation are bombing out like this.  This is a supported endpoint. Anyone have any idea what's going on? https://developer.yammer.com/docs/writing-activity 

4 Replies
Even 'm also getting same issue : platform_js_sdk.js:2 POST https://api.yammer.com/api/v1/activity.json 410 (Gone)

Hi Kamal,

 

I had a conversation with Yammer support, and they've altered the API without notifying anyone. They've promised to update the documentation, but, well, you know how that works :) .

 

I've been able to figure out what to do by Fiddling the user interface. Here's what I came up with:

 

fiddle.jpg

Thanks for the response, I had opened an incident with Microsoft 4 days ago but still, they are investigating the issue. Thanks!

var likePage = function(url, title) {
var deferred = $.Deferred();
$.when(lml.UserManager.getUserProfileProperties()).done(function(personProperties) {
yam.platform.request({
url: "https://api.yammer.com/api/v1/activity.json",
method: "POST",
data: {
activity: {
actor: {
name: personProperties.FirstName + " " + personProperties.LastName,
email: personProperties.UserName
},
action: "like",
object: {
url: url,
title: title,
image: "",
description: "description"
},
type: "page"
}
},
success: function(data) {
deferred.resolve();
},
error: function(jqXHR, textStatus, errorThrown) {
deferred.reject();
}
});
});
return deferred.promise();
};

 

Please suggest, do I need to update URL to 

 " url:"https://www.yammer.com/api/v1/open_graph_objects/update.json"