Error Type Http Message Unknown Error
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have http status code 400 Meta Discuss the workings and policies of this site About Us http code 403 Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with
Http Code 302
us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers,
Http 504
just like you, helping each other. Join them; it only takes a minute: Sign up The graph api /me/apprequests return http error up vote 1 down vote favorite I use FB.api('/me/apprequests/?access_token=' + access_token + '&date_format=' + escape('Y/m/d H:i:s eO'), function(response) { if(response.error) { to get user's app requests. but some times,some users cannot get the app http 503 requests list. only get {"error":{"type":"http","message":"unknown error"}} some users may get this error all the time. I trace this error to my GA quality,Statistical results show some users get this error As many as tens of thousands of times. the access_token is the current user's. why some user get unknown error with type http? I do not get this. thank you. thanks for your answer. I think this error is not caused due to the permission.because I log the access_token when one error occurs.and use facebook debug tool check it.It shows Issued: 1362702044 (about an hour ago) Expires: 1367886044 (in about 2 months) Valid: True Origin: Web Scopes: email publish_actions user_games_activity .So ,I do not known why those problem occur. facebook facebook-graph-api apprequests facebook-app-requests share|improve this question edited Mar 8 '13 at 2:26 asked Mar 6 '13 at 7:55 Edward Lee 113 Are you checking if the user has all required permissions before making the api call? You might get this error when user di
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers
Http 502
or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x http response example Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it http 422 only takes a minute: Sign up Error retrieving Facebook user info using JavaScript SDK up vote 1 down vote favorite I am trying to retrieve Facebook user info on a web app hosted on Google App Engine. The setup is: http://stackoverflow.com/questions/15241839/the-graph-api-me-apprequests-return-http-error 1. web app hosted on the default appspot.com from Google. 2. Have a Facebook app is registered, and configured for "Website with Facebook Login". I am using the FB JavaScript SDK to authenticate and retrieve data through the simple code below: function login(){ FB.getLoginStatus(function(r) { if(r.status === 'connected') { FB.api('/me', function(user) { alert(JSON.stringify(user)); }); }else{ FB.login(function(response) { if(response.authResponse) { alert("Now.... Thats better with FB!"); } else { alert("You should connect to FB."); } }); } }); }; But when I http://stackoverflow.com/questions/15915281/error-retrieving-facebook-user-info-using-javascript-sdk get the 'user' response back from the FB.api(...) call, its the following JSON: {"error":{"type":"http", "message":"unknown error"}} In my Facebook app, my "Site URL" in "Website with Facebook Login" section of Facebook App Settings is pointing to a https address of my GAE app. And I am not sure why such error shows. I spent alot of time searching through StackOverflow and entire web but no reference to this. Could someone please...really please, help! :) Thank you. facebook google-app-engine facebook-graph-api facebook-javascript-sdk share|improve this question edited Apr 18 '13 at 21:59 asked Apr 10 '13 at 1:11 Siamak 264 It looks like syntax error... check your brackets. you have an extra bracket on your code –Seho Lee Apr 10 '13 at 2:14 @Sam, You have an extra curly bracket at the end, so remove second last curly bracket '}' and check –Jay Hardia Apr 10 '13 at 4:23 Thanks guys. But that extra bracket was due to me mistakenly cutting the code short for question, and was not the problem. I updated with the full code now. –Siamak Apr 10 '13 at 4:58 hi @Sam , can you mention link where this problem can be analyse better. –Jay Hardia Apr 10 '13 at 13:11 @JayHardia I put the link on the question –Siamak Apr 10 '13 at 14:53 | show 1 more comment 1 Answer 1 active oldest votes
determine the type of error that occurred, and act accordingly. The app can also call FacebookRequestError.getUserActionMessageId() in order to get the resource id for a string that https://developers.facebook.com/docs/reference/android/3.5/class/FacebookRequestError/ can be displayed to the user. For more information on error handling, see https://developers.facebook.com/docs/reference/api/errors/Extends:ObjectPackage:facebookConstructorsFacebookRequestError(int, String, String)public FacebookRequestError(int errorCode, String errorType, String errorMessage) ParameterBeschreibungerrorCodeerrorTypeerrorMessageInstance MethodsgetUserActionMessageId()Returns the resource id for a user-friendly message for the application to present to the user.public int getUserActionMessageId() ReturnsA user-friendly message to present to the usershouldNotifyUser()Returns whether direct user action is required http code to successfully continue with the Facebook operation. If user action is required, apps can also call FacebookRequestError.getUserActionMessageId() in order to get a resource id for a message to show the user.public boolean shouldNotifyUser() ReturnsWhether direct user action is requiredgetCategory()Returns the category in which the error belongs. Applications can use the category to determine how best to error type http handle the errors (e.g. exponential backoff for retries if being throttled).public Category getCategory() ReturnsThe category in which the error belonggetRequestStatusCode()Returns the HTTP status code for this particular request.public int getRequestStatusCode() ReturnsThe HTTP status code for the requestgetErrorCode()Returns the error code returned from Facebook.public int getErrorCode() ReturnsThe error code returned from FacebookgetSubErrorCode()Returns the sub-error code returned from Facebook.public int getSubErrorCode() ReturnsThe sub-error code returned from FacebookgetErrorType()Returns the type of error as a raw string. This is generally less useful than using the FacebookRequestError.getCategory() method, but can provide further details on the error.public String getErrorType() ReturnsThe type of error as a raw stringgetErrorMessage()Returns the error message returned from Facebook.public String getErrorMessage() ReturnsThe error message returned from FacebookgetRequestResultBody()Returns the body portion of the response corresponding to the request from Facebook.public JSONObject getRequestResultBody() ReturnsThe body of the response for the requestgetRequestResult()Returns the full JSON response for the corresponding request. In a non-batch request, this would be the raw response in the form of a JSON object. In a batch r