• jash
  • NEWBIE
  • 15 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 5
    Replies
I'm trying to get feed items through paging, but the next page always returns a 400 bad request error...  the flow seems pretty basic, not sure what's wrong with the subsequent request but any help\ideas are appreciated. Thanks, Joan

INITIAL REQUEST:
    https://na6.salesforce.com/services/data/v29.0/chatter/feeds/record/0F9800000000266CAA/feed-items

EXCERPT FROM RESPONSE:
"nextPageUrl" : "/services/data/v29.0/chatter/feeds/record/0F9800000000266CAA/feed-items?page=2014-02-06T04%3A52%3A11Z%2C0D580000013UegyCAC"

REQUEST FOR NEXT PAGE RETURNS 400 ERROR:
    https://na6.salesforce.com/services/data/v29.0/chatter/feeds/record/0F9800000000266CAA/feed-items?page=2014-02-06T04%3A52%3A11Z%2C0D580000013UegyCAC
  • April 02, 2014
  • Like
  • 1
Are the OAuth enabled Connected Apps tied in some way to the user that was logged in when they were created?  Or can an admin create these and then allow other users to obtain authorization\access?  I'm not clear on the correlation between the connected app and the credentials used during authorization.  Thanks...
  • March 20, 2014
  • Like
  • 0
I'm using the same url format to retrieve the access_token and refresh_token, but I only get a refresh_token when I use my developer account.  When I use the client_id and secret and another user all pointing to our live instance only the access_token is returned.  Does something additional need to be set on the salesforce instance, the connected app and\or the user to enable refreshing the connection?  Or any other idea?  

Thanks in advance, Joan

Sample request:
https://login.salesforce.com/services/oauth2/token?grant_type=authorization_code&client_id={0}&client_secret={1}&code={2}&redirect_uri=https://

I tried adding the scope parameter but it returned a 400 bad request error:
https://login.salesforce.com/services/oauth2/token?grant_type=authorization_code&scope=full%20refresh_token&client_id={0}&client_secret={1}&code={2}&redirect_uri=https://

  • March 20, 2014
  • Like
  • 0
I'm trying to get feed items through paging, but the next page always returns a 400 bad request error...  the flow seems pretty basic, not sure what's wrong with the subsequent request but any help\ideas are appreciated. Thanks, Joan

INITIAL REQUEST:
    https://na6.salesforce.com/services/data/v29.0/chatter/feeds/record/0F9800000000266CAA/feed-items

EXCERPT FROM RESPONSE:
"nextPageUrl" : "/services/data/v29.0/chatter/feeds/record/0F9800000000266CAA/feed-items?page=2014-02-06T04%3A52%3A11Z%2C0D580000013UegyCAC"

REQUEST FOR NEXT PAGE RETURNS 400 ERROR:
    https://na6.salesforce.com/services/data/v29.0/chatter/feeds/record/0F9800000000266CAA/feed-items?page=2014-02-06T04%3A52%3A11Z%2C0D580000013UegyCAC
  • April 02, 2014
  • Like
  • 1
I'm trying to get feed items through paging, but the next page always returns a 400 bad request error...  the flow seems pretty basic, not sure what's wrong with the subsequent request but any help\ideas are appreciated. Thanks, Joan

INITIAL REQUEST:
    https://na6.salesforce.com/services/data/v29.0/chatter/feeds/record/0F9800000000266CAA/feed-items

EXCERPT FROM RESPONSE:
"nextPageUrl" : "/services/data/v29.0/chatter/feeds/record/0F9800000000266CAA/feed-items?page=2014-02-06T04%3A52%3A11Z%2C0D580000013UegyCAC"

REQUEST FOR NEXT PAGE RETURNS 400 ERROR:
    https://na6.salesforce.com/services/data/v29.0/chatter/feeds/record/0F9800000000266CAA/feed-items?page=2014-02-06T04%3A52%3A11Z%2C0D580000013UegyCAC
  • April 02, 2014
  • Like
  • 1
I'm using the same url format to retrieve the access_token and refresh_token, but I only get a refresh_token when I use my developer account.  When I use the client_id and secret and another user all pointing to our live instance only the access_token is returned.  Does something additional need to be set on the salesforce instance, the connected app and\or the user to enable refreshing the connection?  Or any other idea?  

Thanks in advance, Joan

Sample request:
https://login.salesforce.com/services/oauth2/token?grant_type=authorization_code&client_id={0}&client_secret={1}&code={2}&redirect_uri=https://

I tried adding the scope parameter but it returned a 400 bad request error:
https://login.salesforce.com/services/oauth2/token?grant_type=authorization_code&scope=full%20refresh_token&client_id={0}&client_secret={1}&code={2}&redirect_uri=https://

  • March 20, 2014
  • Like
  • 0

I am sending a GET request to /chatter/users/userId/messages. According to the documentation, one of the request parameters is "page" which "specifies the number of the page you want returned".

 

I tried to use both 0 and 1 for "page" and I always get the error response:

 

GET Bad Request
INVALID_PAGING_OPTION Page value malformed: 0 [or 1]

 

What are the valid values for the "page" parameter?

 

Thank you,

Ugo

  • May 29, 2013
  • Like
  • 0