• Diego Romera
  • NEWBIE
  • 0 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 3
    Replies

Hi there,

 

My web is connected with Chatter API to send feed to user's wall. I would like to attach an image as well with that feed but I've been getting a bad request, a 400 every time I try to upload an image. I'm really depressed because I don't know what's happening even when headers and request are the same I think. To test it I checked the request in the web site http://requestb.in/ which let you check every single request in order to see the headers, so text below is request I have been doing. 

 

The API url I've been pointing is https://eu2.salesforce.com/services/data/v29.0/chatter/feeds/user-profile/me/feed-items

 

http://requestb.in
POST /1eiyqrn1
 multipart/form-data; boundary=AIhbE7z31385469858821
 21.77 kB
23s ago  
From 83.61.20.90
FORM/POST PARAMETERSNone
HEADERS

Content-Type: multipart/form-data; boundary=AIhbE7z31385469858821

Accept: application/json

Authorization: OAuth xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Host: requestb.in

User-Agent: Mozilla/5.0 (X11; Linux i686 (x86_64)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.114 Safari/537.36

Content-Length: 22288

Connection: close

RAW BODY
--AIhbE7z31385469858821Content-Disposition: form-data; name="json"Content-Type: application/json; charset=UTF-8{"body":{"messageSegments":[{"type":"Text","text":"fdsgds"},{"type":"Link","url":"http://localhost:8080/#/explore?a=fdsgds"}]},"attachment":{"attachmentType":"New File","description":"description","title":"fdsgds"}}--AIhbE7z31385469858821Content-Disposition: form-data; name="feedItemFileUpload"; filename="ideasEmpty.jpg"Content-Type: application/octet-stream; charset=ISO-8859-1ÿØÿáExifII*ÿìDucky<ÿá-http://ns.adobe.com/xap/1.0/<?xpacket begin="" id="W5M0MpCehiHzreSzNTczkc9d"?> <x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="Adobe XMP Core 5.3-c011 66.145661, 2012/02/06-14:56:27        "> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <rdf:Description rdf:about="" xmlns:xmp="http://ns.adobe.com/xap/1.0/" xmlns:xmpMM="http://ns.adobe.com/xap/1.0/mm/" xmlns:stRef="http://ns.adobe.com/xap/1.0/sType/ResourceRef#" xmp:CreatorTool="Adobe Photoshop CS6 (Macintosh)" xmpMM:InstanceID="xmp.iid:FDD0A1F3A36111E2B341B338BCE5F8D0" xmpMM:DocumentID="xmp.did:FDD0A1F4A36111E2B341B338BCE5F8D0"> <xmpMM:DerivedFrom stRef:instanceID="xmp.iid:FDD0A1F1A36111E2B341B338BCE5F8D0" stRef:documentID="xmp.did:FDD0A1F2A36111E2B341B338BCE5F8D0"/> </rdf:Description> </rdf:RDF> </x:xmpmeta> <?xpacket end="r"?>ÿîAdobedÀÿÛ„		

ÿÀÿxÿħ!1AQaq"2�‘B¡#ÁRbr±Ñá‚’¢3$ðC4²Sc%!1A"Q2ðaq�ÁB‘¡±Rr#Ñáñ3ÿÚ?ꔀ@ €(Bdn*¹¾dkPJÁ‚	9Ñ W¾Üvûsqu¥¸ÀÍ;Û?Ôâ[]Û]BË‹iY=¼‚±ÏƒØáZ`æ’

 Thanks in advance.

 

Diego

Hi there,

 

I've been developing a canvas app which connect with an external website even log in inside it . To do it I have been making use of Salesforce javascript library inorder to manage to get client and user info to show that website in a chatter tab. 

 

Everything works well in Chrome and Firefox nevertheless Internet Explorer gives me an javascript error that is from salesforce I think. See the error :

 

"presence: onFailure in event parser ={"status":-5,"statusText":""}page load happens value=true "

 

After that the client and user info is not able to be send to my canvas app so the result is a big fail because I have no information about who is logging in. I guess that error is due to crossdomain in internet explorer.

 

I opened a ticket on salesforce customer technical service but the only answer I had is to try to check my internet explorer settings, how is that possible?it means that I'll need to say it to all users who download the app from appexchange?

 

Thank you in advance

 

Regards,

 

Diego Romera

Hi there,

 

My web is connected with Chatter API to send feed to user's wall. I would like to attach an image as well with that feed but I've been getting a bad request, a 400 every time I try to upload an image. I'm really depressed because I don't know what's happening even when headers and request are the same I think. To test it I checked the request in the web site http://requestb.in/ which let you check every single request in order to see the headers, so text below is request I have been doing. 

 

The API url I've been pointing is https://eu2.salesforce.com/services/data/v29.0/chatter/feeds/user-profile/me/feed-items

 

http://requestb.in
POST /1eiyqrn1
 multipart/form-data; boundary=AIhbE7z31385469858821
 21.77 kB
23s ago  
From 83.61.20.90
FORM/POST PARAMETERSNone
HEADERS

Content-Type: multipart/form-data; boundary=AIhbE7z31385469858821

Accept: application/json

Authorization: OAuth xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Host: requestb.in

User-Agent: Mozilla/5.0 (X11; Linux i686 (x86_64)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.114 Safari/537.36

Content-Length: 22288

Connection: close

RAW BODY
--AIhbE7z31385469858821Content-Disposition: form-data; name="json"Content-Type: application/json; charset=UTF-8{"body":{"messageSegments":[{"type":"Text","text":"fdsgds"},{"type":"Link","url":"http://localhost:8080/#/explore?a=fdsgds"}]},"attachment":{"attachmentType":"New File","description":"description","title":"fdsgds"}}--AIhbE7z31385469858821Content-Disposition: form-data; name="feedItemFileUpload"; filename="ideasEmpty.jpg"Content-Type: application/octet-stream; charset=ISO-8859-1ÿØÿáExifII*ÿìDucky<ÿá-http://ns.adobe.com/xap/1.0/<?xpacket begin="" id="W5M0MpCehiHzreSzNTczkc9d"?> <x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="Adobe XMP Core 5.3-c011 66.145661, 2012/02/06-14:56:27        "> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <rdf:Description rdf:about="" xmlns:xmp="http://ns.adobe.com/xap/1.0/" xmlns:xmpMM="http://ns.adobe.com/xap/1.0/mm/" xmlns:stRef="http://ns.adobe.com/xap/1.0/sType/ResourceRef#" xmp:CreatorTool="Adobe Photoshop CS6 (Macintosh)" xmpMM:InstanceID="xmp.iid:FDD0A1F3A36111E2B341B338BCE5F8D0" xmpMM:DocumentID="xmp.did:FDD0A1F4A36111E2B341B338BCE5F8D0"> <xmpMM:DerivedFrom stRef:instanceID="xmp.iid:FDD0A1F1A36111E2B341B338BCE5F8D0" stRef:documentID="xmp.did:FDD0A1F2A36111E2B341B338BCE5F8D0"/> </rdf:Description> </rdf:RDF> </x:xmpmeta> <?xpacket end="r"?>ÿîAdobedÀÿÛ„		

ÿÀÿxÿħ!1AQaq"2�‘B¡#ÁRbr±Ñá‚’¢3$ðC4²Sc%!1A"Q2ðaq�ÁB‘¡±Rr#Ñáñ3ÿÚ?ꔀ@ €(Bdn*¹¾dkPJÁ‚	9Ñ W¾Üvûsqu¥¸ÀÍ;Û?Ôâ[]Û]BË‹iY=¼‚±ÏƒØáZ`æ’

 Thanks in advance.

 

Diego

Hi there,

 

I've been developing a canvas app which connect with an external website even log in inside it . To do it I have been making use of Salesforce javascript library inorder to manage to get client and user info to show that website in a chatter tab. 

 

Everything works well in Chrome and Firefox nevertheless Internet Explorer gives me an javascript error that is from salesforce I think. See the error :

 

"presence: onFailure in event parser ={"status":-5,"statusText":""}page load happens value=true "

 

After that the client and user info is not able to be send to my canvas app so the result is a big fail because I have no information about who is logging in. I guess that error is due to crossdomain in internet explorer.

 

I opened a ticket on salesforce customer technical service but the only answer I had is to try to check my internet explorer settings, how is that possible?it means that I'll need to say it to all users who download the app from appexchange?

 

Thank you in advance

 

Regards,

 

Diego Romera