iOS Facebook SDK - Error code 8 - ios

The Facebook SDK for iOS worked great until now. Since 2 hours ago, I'm constantly receiving the following error message when I'm trying to log in with Facebook:
Error Domain=com.facebook.sdk.core Code=8 "(null)" UserInfo={NSRecoveryAttempter=<_FBSDKTemporaryErrorRecoveryAttempter: 0x7fb060edae20>, com.facebook.sdk:FBSDKGraphRequestErrorGraphErrorCode=2, NSLocalizedRecoverySuggestion=Momentan serverul este ocupat. Te rugăm să încerci din nou., com.facebook.sdk:FBSDKErrorDeveloperMessageKey=An unexpected error has occurred. Please retry your request later., com.facebook.sdk:FBSDKGraphRequestErrorHTTPStatusCodeKey=500, com.facebook.sdk:FBSDKGraphRequestErrorCategoryKey=1, NSLocalizedRecoveryOptions=<CFArray 0x7fb0638b71b0 [0x10c2fea40]>{type = immutable, count = 1, values = (
0 : OK
)}, com.facebook.sdk:FBSDKGraphRequestErrorParsedJSONResponseKey={
body = {
error = {
code = 2;
"fbtrace_id" = Et3O2yEtpV7;
"is_transient" = 1;
message = "An unexpected error has occurred. Please retry your request later.";
type = OAuthException;
};
};
code = 500;
}}
I have verified:
The bundle ID is correct
The parameters are correct - id,email,name,gender,birthday,picture.width(1080).height(1080),bio,location,friends
The SDK is correctly installed (info.plist with all the requirements - fb{app-id} etc)
All the methods inside the AppDelegate are added and are correctly updated for iOS 9
What should I do? I have tested the SDK on another app and there it's working.

Related

Strange message: xcodebuild[14933:1513031] DVTPortal: Service - on tns run ios

on
$tns run ios
I have this interesting bit saying that my session expired, why is that if I am not using as I am aware anything from developerservices2.apple.com ?
Pod installation complete! There are 2 dependencies from the Podfile and 6 total pods installed.
Project successfully prepared (ios)
Building project...
Xcode build...
2020-02-25 17:25:15.195 xcodebuild[14933:1513031] DVTPortal: Service '<DVTPortalViewDeveloperService: 0x7ff1dad949c0; action='viewDeveloper'>' encountered an unexpected result code from the portal ('1100')
2020-02-25 17:25:15.195 xcodebuild[14933:1513031] DVTPortal: Error:
Error Domain=DVTPortalServiceErrorDomain Code=1100 "Your session has expired. Please log in." UserInfo={payload={
creationTimestamp = "2020-02-25T17:25:15Z";
httpCode = 200;
protocolVersion = QH65B2;
requestUrl = "https://developerservices2.apple.com/services/QH65B2/viewDeveloper.action";
responseId = "2db7642e-2968-41e4-b622-a343370951c9";
resultCode = 1100;
resultString = "Your session has expired. Please log in.";
userLocale = "en_US";
userString = "Your session has expired. Please log in.";
}, NSLocalizedDescription=Your session has expired. Please log in.}
2020-02-25 17:25:15.597 xcodebuild[14933:1513031] DVTPortal: Service '<DVTPortalViewDeveloperService: 0x7ff1dabb4480; action='viewDeveloper'>' encountered an unexpected result code from the portal ('1100')
2020-02-25 17:25:15.597 xcodebuild[14933:1513031] DVTPortal: Error:
Error Domain=DVTPortalServiceErrorDomain Code=1100 "Your session has expired. Please log in." UserInfo={payload={
creationTimestamp = "2020-02-25T17:25:15Z";
httpCode = 200;
protocolVersion = QH65B2;
requestUrl = "https://developerservices2.apple.com/services/QH65B2/viewDeveloper.action";
responseId = "214edf34-9ad8-471c-8207-fd361198ad8f";
resultCode = 1100;
resultString = "Your session has expired. Please log in.";
userLocale = "en_US";
userString = "Your session has expired. Please log in.";
}, NSLocalizedDescription=Your session has expired. Please log in.}
Xcode build...

Pintest iOS SDK - 401 Authorization error on login

I have been able to authenticate with the Pinterest API on both the javascript and Android SDK. On iOS, I've triple-checked all of my settings to make sure I've configured everything according to the documentation.
However, when I log in through iOS, I am taken to the Pinterest app to authorize and all looks good. However, when Pinterest passes me back to my app, I am getting the following login error:
Error Domain=com.alamofire.error.serialization.response Code=-1011 "Request failed: unauthorized (401)" UserInfo={com.alamofire.serialization.response.error.response=<NSHTTPURLResponse: 0x17403dea0> { URL: https://api.pinterest.com/v1/oauth/inspect?access_token=AYalMni-yTq5Y0UihwETrFxZpzL5FK2tXvfmkbhDyJ_OP8BGeQAAAAA&token=AYalMni-yTq5Y0UihwETrFxZpzL5FK2tXvfmkbhDyJ_OP8BGeQAAAAA } { status code: 401, headers {
Age = 0;
"Cache-Control" = private;
Connection = "keep-alive";
"Content-Length" = 177;
"Content-Type" = "application/json";
Date = "Mon, 20 Mar 2017 19:21:15 GMT";
"Pinterest-Generated-By" = "devplatform-devapi-prod-0a01239b";
"Pinterest-Version" = 918ef75;
"X-Content-Type-Options" = nosniff;
"X-Pinterest-RID" = 280542321780;
} }, NSErrorFailingURLKey=https://api.pinterest.com/v1/oauth/inspect?access_token=AYalMni-yTq5Y0UihwETrFxZpzL5FK2tXvfmkbhDyJ_OP8BGeQAAAAA&token=AYalMni-yTq5Y0UihwETrFxZpzL5FK2tXvfmkbhDyJ_OP8BGeQAAAAA, com.alamofire.serialization.response.error.data=<7b227374 61747573 223a2022 6661696c 75726522 2c202263 6f646522 3a20332c 2022686f 7374223a 20226465 76706c61 74666f72 6d2d6465 76617069 2d70726f 642d3061 30313233 3962222c 20226765 6e657261 7465645f 6174223a 20224d6f 6e2c2032 30204d61 72203230 31372031 393a3231 3a313520 2b303030 30222c20 226d6573 73616765 223a2022 41757468 6f72697a 6174696f 6e206661 696c6564 2e222c20 22646174 61223a20 6e756c6c 7d>, NSLocalizedDescription=Request failed: unauthorized (401)}
I tried taking the access token referred to in the error response and using the token debugger on the Pinterest developer site to check it, but when I did so I got the message "An error occurred. Please try again."
So, I'm stumped. It seems to me that the access token that's being generated on iOS login is being seen as invalid by Pinterest, but I don't know how to fix that.
Do you have any thoughts on what can be done to resolve this?

Titanium save file - Could not write data to file at path

I am have created an app with an apple watch extension.
When you click on the button in the watch app an functions gets triggered in the ios app.
In this function i create an json file an send it to the watch app.
When the iphone is not locked everything is working.
But when the iphone is locked i get the following error:
[ERROR] : Could not write data to file at path "/var/mobile/Containers/Data/Application/4015E77E-A694-4E43-8AF6-4858A5FD5958/Documents/arr.json" - details: Error Domain=NSCocoaErrorDomain Code=513 "Sie haben nicht die Zugriffsrechte, um die Datei „arr.json“ im Ordner „Documents“ zu sichern." UserInfo={NSFilePath=/var/mobile/Containers/Data/Application/4015E77E-A694-4E43-8AF6-4858A5FD5958/Documents/arr.json, NSUserStringVariant=Folder, NSUnderlyingError=0x14dd83fa0 {Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"}}
The stranage thing is, when i try to save data in that file from an remote source it is working, but when i am trying to set an local json string i get this error.
This is my normal why to save the data:
var jsontext = JSON.stringify(arrData);
var f = Titanium.Filesystem.getFile(Titanium.Filesystem.applicationDataDirectory,'arr.json');
f.write(jsontext);
This is the way with the remote data
var cache = require("ui/common/fileCache");
cache.loadJSON({
url : REMOTEURL,
path : cache.appDir + "arr.json",
last : false
});
fileCache.js
var c = Titanium.Network.createHTTPClient();
c.cache = false;
c.onerror = function(e) {
Ti.API.info('Daten-Caching :: ERROR :: URL = ' + params.url + ' Error=' + e.error);
};
c.onload = function(e) {
var f = Titanium.Filesystem.getFile(params.path);
f.write(c.responseData);
};
c.open('GET', params.url);
c.send();
I dont understand why the second code works when the iphone is locked and the first one not.
Does anyone knows what went wrong?

quickblox session registration fails on simulator with no descriptive response (on sample IOS apps)

Is there a way to get more details on a quickblox QBResponse object, I'm running the simple-sample-users IOS app on the simulator, and its failing on the creation of the initial session,
[QBRequest createSessionWithSuccessBlock:
However, when I run it on the real device it works fine. On simulator it just says response.description is null and response code of 0 which does not match any of the QBResponse types
`typedef NS_ENUM(NSInteger, QBResponseStatusCode){
QBResponseStatusCodeUnknown = -1,
QBResponseStatusCodeAccepted = 202,
QBResponseStatusCodeCreated = 201,
QBResponseStatusCodeNotFound = 404,
QBResponseStatusCodeOK = 200,
QBResponseStatusCodeBadRequest = 400,
QBResponseStatusCodeServerError = 500,
QBResponseStatusCodeUnAuthorized = 401,
QBResponseStatusCodeValidationFailed = 422
};`
Please check for response.error.reasons dictionary or for response.error.error.localizedReceoverySuggestion to get more information about error.

Download Connection From LinkedIn and import into iPhone Contacts

Can anyone help me , I want to Download the connection of LinkedIn and Add into iPhone Address Book.
I googled it but not getting any help.
I am using following Api :
NSURL *url = [NSURL URLWithString:#"http://api.linkedin.com/v1/people/~/connections"];
and I am getting the response like:
profile {
errorCode = 0;
message = "Access to connections denied";
requestId = GVG2FXA2N0;
status = 403;
timestamp = 1366641414499;
}
There is AddressBook framework for that:
http://developer.apple.com/library/ios/#documentation/ContactData/Conceptual/AddressBookProgrammingGuideforiPhone/
a wrapper library:
http://maniacdev.com/2012/02/open-source-ios-address-book-wrapper-library-providing-automatic-hashing-and-permission-alerts/
Simple tutorial:
http://programming4.us/mobile/9260.aspx
You must be missing r_network scope.Even I was getting same error. But when I added r_network scope the problem resolved

Resources